Page 59 of 104

Posted: Fri Jan 18, 2008 12:01 pm
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

Posted: Fri Jan 18, 2008 12:28 pm
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.

Posted: Mon Jan 21, 2008 12:17 pm
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.

Posted: Mon Jan 21, 2008 1:24 pm
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 ?

Posted: Mon Jan 21, 2008 2:43 pm
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.

Posted: Tue Jan 22, 2008 1:21 pm
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 ?

Posted: Tue Jan 22, 2008 2:19 pm
by inc.
Ill check it this evening. :)

Posted: Wed Jan 23, 2008 6:43 pm
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?

Posted: Wed Jan 23, 2008 10:13 pm
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. :(

Posted: Thu Jan 24, 2008 9:09 am
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 ?

Posted: Thu Jan 24, 2008 2:44 pm
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.

Posted: Thu Jan 24, 2008 3:00 pm
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.

Posted: Thu Jan 24, 2008 3:32 pm
by gnozal
Update

Changes :
- added support for file reloading via %TEMPFILE (for tools)
- PB_TOOL environment variables are now enabled by default

Posted: Fri Jan 25, 2008 12:19 pm
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

Posted: Fri Jan 25, 2008 12:37 pm
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.