Trace Stack to Code Line Number

Discussion in 'AutoCAD' started by jeffds, Jul 1, 2004.

  1. jeffds

    jeffds Guest

    Hello,
    Wondering if anyone can help out?
    When I have code that crashes unexpectedly and I view the trace stack - is there anyway to jump to the line of code that it came from?
    eg my trace stack would look like this:
    <1> :ERROR-BREAK
    [2] (SSLENGTH nil)
    [3] (SPRINK_AREA)
    [4] (C:AS)
    <5> :CALLBACK-ENTRY
    <6> :ARQ-SUBR-CALLBACK

    And I can only tell the function that the crash occured in. Is there a way to refine the search?

    thanks for any help.
     
    jeffds, Jul 1, 2004
    #1
  2. jeffds

    zeha Guest

    it seems that there is no selectionset
    there is no selectionset for the variable (sslength ...) named to dots
    it's better there is a test (if (= (type selectionset)'PICKSET)....

    there must in the file something like (setq .. (ssget
    this will be set a variable to selectionset

    check this out tru step by step and put a stop before the variable (setq .. (ssget

    Good luck.

    cheers,

    Harrie
     
    zeha, Jul 1, 2004
    #2
  3. jeffds

    Devin Guest

    Can't you just double click on the trace stack item in the trace window?
     
    Devin, Jul 1, 2004
    #3
  4. jeffds

    Josh Guest

    I may be totally missing the boat here as to what you're after but under the
    Debug menu I have Break On Error checked (Trace Command is unchecked...I
    don't use it). Then when my code crashes, as it tends to do, I go under the
    Debug menu and select Last Break Source (or use Ctrl+F9) and the editor
    jumps to and highlights the section that caused the error.

    Hopefully, this is close to what you're after.

    Josh


    there anyway to jump to the line of code that it came from?
     
    Josh, Jul 1, 2004
    #4
  5. jeffds

    jeffds Guest

    Thanks,
    I tried Crtl-F9 (with Break on Error ticked) and it tells me the error. But doesn't jump to the offending line.
    I did sort out the original error but was wondering what I may settings I have in VLIDE that are preventing it from jumping to the line of code.
    Thanks for your help everyone.
     
    jeffds, Jul 2, 2004
    #5
  6. jeffds

    zeha Guest

    Jeffds,

    Post the code (SPRINK_AREA) an i will try to debug the code
    or look in this code
    When the break on error is on then the routine will stop on this error and you can inspect the value of the variable
     
    zeha, Jul 2, 2004
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.