jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Moderator: gnozal
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Currently, no.izu wrote:How to Debug - Question
Using jaPBe how can I set a breakpoint in the begining of the code ?
Is it possible ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Hi Gnozal,
did you had a look at this issue ..
did you had a look at this issue ..
IMHO this also should be IDE conform and its also risky when keeping %File as argument for the file which will be overwritten.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.
Check out OOP support for PB here!
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Iirc the source is saved _before_ calling a tool with trigger 'BeforeCompileRun' : so this shouldn't be a problem.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.
Isn't it the case ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
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.
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!
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
jaPBe should now also support reload source (reload source into current source) with %TEMPFILE.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.
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).
Hi Gnozal,gnozal wrote:jaPBe should now also support reload source (reload source into current source) with %TEMPFILE.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.
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.

Check out OOP support for PB here!
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Not in my tests !?inc. wrote:although it now supports reloading the file via %TEMPFILE in the tools settings, it still does overwrite the original file.gnozal wrote:jaPBe should now also support reload source (reload source into current source) with %TEMPFILE.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.
Could you test this file : http://freenet-homepage.de/gnozal/jaPBe_BETA.zip ?
My (test tool) code :
Code: Select all
OpenConsole()
Print("Press any key ...")
While Inkey() = ""
Delay(10)
Wend
CloseConsole()
Code: Select all
Command line : C:\PureBasic\TestTool.exe
Arguments : "%TEMPFILE"
Wait until tool quits [x]
Reload source [x]
Into current source [x]
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).
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.

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!
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Good !inc. wrote:It didn't work cause I forgot to hit "replace" in the tools setup![]()
Works now! Many thanks.
Yes, it's planned.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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Changes :
- added support for file reloading via %TEMPFILE (for tools)
- PB_TOOL environment variables are now enabled by default
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).
@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
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
my live space
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
You can't.nicolaus wrote:How i can set 2 different source files in a split editor window?
It's experimental and like it is said in the manual some scintilla features won't work in the 2nd window.nicolaus wrote:And if i split the editor window, the folding in the upper window works but not in the order one.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).