Add - Show executed codeline in Debugger!

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi Fred
Sometimes it could be possible that a program crash with enabled debugger and the coder dont know where to search for the (sometimes mysterious) error!

So please add (maybe) an optional option to the debugger, to let the coder know which line is actually or was last executed by the compiler to see at which point the program will crash (when the enabled debugger will crash too!)

I think this would help some guys for finding bugs/tracing there program on a very easy and more undertandable way (to know the actual codeline)! Maybe you could add an StatusBarText() with information of the filename (mainprog/includefiles i.e.) and the codeline (like in the editor) to the debugger window...!?

Here is a very small example to see what i mean...

Code: Select all

    Debug( 1) : Repeat
    Debug( 2) :   test + 1
    Debug( 3) :   ;
    Debug( 4) :   If test = 500 
    Debug( 5) :     test = 1000 
    Debug( 6) :     Sleep_(3000) 
    Debug( 7) :   EndIf
    Debug( 8) :   ;
    Debug( 9) : Until test = 1500  
    Debug(10) : 
    Debug(11) : End
Would be really fine to have this feature! Thanks in advance...


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten