Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 635 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
breakpoint keyword not recognized by SED #210509
06/11/08 04:21
06/11/08 04:21
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
I'm using pure lite-c and I remembered to include

#include <acknex.h>
#include <windows.h>

Using A7.07

I wanted to break in a function called from a seperate module also written in SED and included in the main.c module. I was dismayed when I learned that I could not get into the called function except by stepping into it from main. My hope was momentarily lifted when I found 'breakpoint' in the documentation, but my hopes were efficiently shattered on the harsh cliffs of reality when SED wouldn't even compile my script saying breakpoint is an 'undeclared identifier', despite the fact that it's a keyword, changes color in the editor, and recognizes that it's part of the documentation in SED's little 'Command Help' window at the bottom. Is the 'breakpoint' ability no longer supported?

Re: breakpoint keyword not recognized by SED [Re: BES] #210512
06/11/08 05:22
06/11/08 05:22
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
yeah I found the same thing yesterday..Just to make it clear,I used it like this

...
breakpoint;
...

I've also included default.c in my project.


I like good 'views' because they have no 'strings' attached..
Re: breakpoint keyword not recognized by SED [Re: zazang] #210513
06/11/08 05:50
06/11/08 05:50
Joined: Sep 2003
Posts: 928
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 928
Breakpoints are placed with F9. Debugging is important for development and you should really learn it!

All methods to set breakpoints is in the manual under "Debugging" and also in the lite-C workshops.




Re: breakpoint keyword not recognized by SED [Re: Spirit] #210607
06/11/08 18:32
06/11/08 18:32
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
I am very familiar with debugging- I use F9 all the time, but here's what the documentation says:

Quote:
if (KEY_B) { breakpoint; } // breakpoint only if [B] is pressed
if (MY == NULL) { breakpoint; } // breakpoint only if MY is an empty pointer


This looks to me like an example of setting a breakpoint via code instead of using F9 (unless I misunderstand, which is very possible). Here's a link to the documentation:

http://manual.conitec.net/adeb-breakpoint.htm

1) Is this feature still supported?
2) If so, how do I get around the 'unknown identifier'?
3) If not, is there some other means to get the debugger to break in a callback function (which I am unable to step into from the main function)?

Thanks so much for your time!

Re: breakpoint keyword not recognized by SED [Re: BES] #210609
06/11/08 18:37
06/11/08 18:37
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
try adding ()

Re: breakpoint keyword not recognized by SED [Re: BES] #210612
06/11/08 18:42
06/11/08 18:42
Joined: Sep 2003
Posts: 928
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 928
Hmm maybe that was for A4 or A5? Since A6 you place breakpoints with F9. I don't think that entering the word "breakpoint" will set a breakpoint in A7.

Re: breakpoint keyword not recognized by SED [Re: Joey] #210614
06/11/08 18:44
06/11/08 18:44
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
Already tried it (and I just tried it again to be absolutely certain). Good idea though. Any other thoughts?

Re: breakpoint keyword not recognized by SED [Re: BES] #210615
06/11/08 18:45
06/11/08 18:45
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
Right on, that's what it looks like. I'll just move on unless someone learns something different. Thanks again =)

Re: breakpoint keyword not recognized by SED [Re: BES] #210617
06/11/08 18:47
06/11/08 18:47
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
what about breakpoint_on(1)?

Re: breakpoint keyword not recognized by SED [Re: Joey] #210618
06/11/08 18:50
06/11/08 18:50
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Nope, its F9. There was really once a "breakpoint" command for WDL but that was replaced by F9 some years ago when SED was released. smile

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1