Page 1 of 1

I'm new and I can't debug

Posted: Sun Aug 27, 2017 12:46 pm
by dger
Hi all,
I'm new to purebasic (I dont programming games since AMOS BASIC on the AMIGA).

Now I'm codig since few days, and I have a problem using the debugger:

I have inserteed a break point (F9) on the source editor, started execution from "compile->compile with debugger", then, when the excution stop on the line, I only have the "kill process" option active, all other options, STOP, CONTINUE e STEP are disable (gray colored).

I'm using windows 7 and the 64 bit version.

Any help will be very appreciated.

Thanks

Re: I'm new and I can't debug

Posted: Sun Aug 27, 2017 12:58 pm
by mk-soft
Changes position of Breakpoint.
- Inside of Procedure
- Inside Mainscope
- Not between Procedures

Re: I'm new and I can't debug

Posted: Sun Aug 27, 2017 1:46 pm
by dger
mk-soft wrote:Changes position of Breakpoint.
- Inside of Procedure
- Inside Mainscope
- Not between Procedures
It worked!! Many thanks!

Re: I'm new and I can't debug

Posted: Sun Aug 27, 2017 2:31 pm
by Zebuddi123
Hi There`s also a standalone debugger in the File->Preferences->debugger menu top left combobox dropdown.

Zebuddi. :)

Re: I'm new and I can't debug

Posted: Sun Aug 27, 2017 2:55 pm
by dger
Zebuddi123 wrote:Hi There`s also a standalone debugger in the File->Preferences->debugger menu top left combobox dropdown.

Zebuddi. :)
Found! Thanks

Re: I'm new and I can't debug

Posted: Fri Jun 08, 2018 9:32 pm
by bfernhout
Another thing to remember.
I did got run against it to. And i am also a new programmer on PB (Witch i like a lot, Even on the AMIGA)
NEVER make a Break line (F9) on a empty line. The debugger shift the line to the nearest real line. And it goes to a line outside a Procedure or outside a If statment the program is breaking on the moment that the program is starting.
This was fustrating for me why the program was stopping before it realy runs. untile i got the awnser.

I hope you got something whit it.

Happe programming