<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>We need a bit more information to help you because Racket provides precisely the information that you're looking for in DrRacket. Take this program: </div><div><br></div><div><div>#lang racket</div><div><br></div><div>(sin</div><div> (cos</div><div> (tan</div><div> (abs </div><div> (add1</div><div> (sub1 </div><div> ((list 1 2 3))))))))</div></div><div><br></div><div>Run it and you get </div><div><br></div><div><blockquote type="cite"><div>. . application: not a procedure;</div><div><font class="Apple-style-span" color="#000000"> expected a procedure that can be applied to arguments</font></div><div><font class="Apple-style-span" color="#000000"> given: '(1 2 3)</font></div><div><font class="Apple-style-span" color="#000000"> arguments...: [none]</font></div></blockquote><div><br></div>The first icon gives you access to the complete stack. <br><br></div><div>In a plain Racket replWelcome to Racket v5.90.0.11.</div><div>> (sin</div><div> (cos</div><div> (tan</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>(abs </div><div><span class="Apple-tab-span" style="white-space:pre"> </span> (add1</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> (sub1 </div><div><span class="Apple-tab-span" style="white-space:pre"> </span> ((list 1 2 3))))))))</div><div>application: not a procedure;</div><div> expected a procedure that can be applied to arguments</div><div> given: '(1 2 3)</div><div> arguments...: [none]</div><div> context...:</div><div> /Users/matthias/plt/racket/collects/racket/private/misc.rkt:87:7</div><div><br></div><div>So what language are you specifying and in what context are you running the program? </div><div><br></div><div>-- Matthias</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div><div>On Nov 23, 2013, at 9:58 AM, Yu Yang wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>when racket get an exception, it will show an error message like this <br>> procedure application: expected procedure, given: '(1 2 3) (no arguments)<br></div>but this message seems too simple to figure out where the bug is. so I wan to know if there is any way to make racket show call stack, when it get an exception<br>
</div>
____________________<br> Racket Users list:<br> <a href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users</a><br></blockquote></div><br></body></html>