jaPBe 3.13.4 [IDE for PB 4 and PB 5]

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

izu
New User
New User
Posts: 1
Joined: Thu Jan 17, 2008 11:31 pm

Post by izu »

How to Debug - Question

Using jaPBe how can I set a breakpoint in the begining of the code ?
Is it possible ?

... the debuger only stops in the main loop (after that I can set a breackpoint) but I need to stop the execution before that !

Thanks
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

izu wrote:How to Debug - Question
Using jaPBe how can I set a breakpoint in the begining of the code ?
Is it possible ?
Currently, no.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Hi Gnozal,

did you had a look at this issue ..
inc. wrote:Another point I did figure out is that in the IDE when providing the argument "%TEMPFILE" and configuring the tool to overwrite the existing source, actually the source in the window is overwritten but NOT safed which should be the sense in case of a just text modifying plugin.

But in jaPBe I have to set "%FILE" as argument for supportig the overwriting of the current source in the editing window. Now ... this also forces the source to safed automatically which imho is VERY risky As jaPBe by this will affect the orig source where the IDE only affects a pre-build tempfile.
IMHO this also should be IDE conform and its also risky when keeping %File as argument for the file which will be overwritten.
Check out OOP support for PB here!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

inc. wrote:But in jaPBe I have to set "%FILE" as argument for supportig the overwriting of the current source in the editing window. Now ... this also forces the source to safed automatically which imho is VERY risky As jaPBe by this will affect the orig source where the IDE only affects a pre-build tempfile.
Iirc the source is saved _before_ calling a tool with trigger 'BeforeCompileRun' : so this shouldn't be a problem.
Isn't it the case ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

No this issue belongs to the trigger "Shortkey/MenueEntry".

I figured this out with my Codebeautyfier (indent tool) where the IDE does handle the situation well as it supports reloading the source via %TEMPFILE where jaPBe forces me to use %FILE for beeing able to reload the source automatically after the plugin finishes its work.
Check out OOP support for PB here!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

inc. wrote:I figured this out with my Codebeautyfier (indent tool) where the IDE does handle the situation well as it supports reloading the source via %TEMPFILE where jaPBe forces me to use %FILE for beeing able to reload the source automatically after the plugin finishes its work.
jaPBe should now also support reload source (reload source into current source) with %TEMPFILE.
Could you test this file : http://freenet-homepage.de/gnozal/jaPBe_BETA.zip ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Ill check it this evening. :)
Check out OOP support for PB here!
Wolfgang
New User
New User
Posts: 2
Joined: Wed Jan 23, 2008 6:17 pm
Location: Deutschland

Post by Wolfgang »

I have one problem with japbe.
When I install new userlibraries or a new program version,
I often get an error message.
It says:
[i]FATAL ERROR: ReadFile_() failed on InPipeRead
Possible causes:
- PBCompiler crash
- insufficient #PB410_PipeMaxLen[/i]

Can anyone say whats wrong with it?
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

gnozal wrote:
inc. wrote:I figured this out with my Codebeautyfier (indent tool) where the IDE does handle the situation well as it supports reloading the source via %TEMPFILE where jaPBe forces me to use %FILE for beeing able to reload the source automatically after the plugin finishes its work.
jaPBe should now also support reload source (reload source into current source) with %TEMPFILE.
Could you test this file : http://freenet-homepage.de/gnozal/jaPBe_BETA.zip ?
Hi Gnozal,

although it now supports reloading the file via %TEMPFILE in the tools settings, it still does overwrite the original file. :(
Check out OOP support for PB here!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

inc. wrote:
gnozal wrote:
inc. wrote:I figured this out with my Codebeautyfier (indent tool) where the IDE does handle the situation well as it supports reloading the source via %TEMPFILE where jaPBe forces me to use %FILE for beeing able to reload the source automatically after the plugin finishes its work.
jaPBe should now also support reload source (reload source into current source) with %TEMPFILE.
Could you test this file : http://freenet-homepage.de/gnozal/jaPBe_BETA.zip ?
although it now supports reloading the file via %TEMPFILE in the tools settings, it still does overwrite the original file. :(
Not in my tests !?

My (test tool) code :

Code: Select all

OpenConsole()

Print("Press any key ...")

While Inkey() = ""
 Delay(10) 
Wend

CloseConsole()
My (test tool) settings :

Code: Select all

Command line : C:\PureBasic\TestTool.exe
Arguments : "%TEMPFILE"
Wait until tool quits [x]
Reload source [x]
Into current source [x]
Test protocol :
I load some test source : C:\PureBasic\Program\TestTool.pb
I start the tool : it starts and waits for any key.
I modify manually the temp file [c:\TEMP\Temp_2371.pb]
I stop the tool by pressing any key.
The source (''TestTool.pb" tab) is reloaded from (modified) temp file.
But the original source file (' C:\PureBasic\Program\TestTool.pb') is unchanged.

Could you post your tools settings ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

It didn't work cause I forgot to hit "replace" in the tools setup :|

Works now! Many thanks.

Anyhow as the current loaded source now has been changed, the name also should be named to a non safed state using the "*" as prefix in the tab above. Like in the IDE.
Check out OOP support for PB here!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

inc. wrote:It didn't work cause I forgot to hit "replace" in the tools setup :|
Works now! Many thanks.
Good !
inc. wrote:Anyhow as the current loaded source now has been changed, the name also should be named to a non safed state using the "*" as prefix in the tab above. Like in the IDE.
Yes, it's planned.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- added support for file reloading via %TEMPFILE (for tools)
- PB_TOOL environment variables are now enabled by default
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

@gnozal

How i can set 2 different source files in a split editor window?

And if i split the editor window, the folding in the upper window works but not in the order one.

regards,
Nico
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

nicolaus wrote:How i can set 2 different source files in a split editor window?
You can't.
nicolaus wrote:And if i split the editor window, the folding in the upper window works but not in the order one.
It's experimental and like it is said in the manual some scintilla features won't work in the 2nd window.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply