Page 11 of 104

Posted: Fri Mar 03, 2006 11:53 am
by gnozal
tomijan wrote:It's possible to use in jaPBe this kind of debugger, as in original PB IDE? I find this more convenient as standalone version.
No, jaPBe can only use the external debugger.

Posted: Sat Mar 04, 2006 12:38 pm
by gnozal
Update

Changes :
- some fixes and updates in help.pbi
- enhanced 'AutoIndent2' features
Flype wrote:You (we) can consider, definitely, that it is only possible on lines such as the ones in my example.
First step

Code: Select all

x + 10 ; update sprite x
y + 8 ; update sprite y 
width + 12 ; adjusting the width
height + (50) ; adjusting the height
Last step

Code: Select all

x      + 10   ; update sprite x
y      + 8    ; update sprite y 
width  + 12   ; adjusting the width
height + (50) ; adjusting the height
After CTRL+SHIFT+TAB, if 'AutoIndent2 : Optimize' is activated and jaPBe detects a 'possible case', the code is autoindented like your example above.

Posted: Sat Mar 04, 2006 2:31 pm
by Flype
yeah, works well thank you very much gnozal :P

Posted: Sun Mar 05, 2006 12:46 am
by Shannara
Sorry for the long downtime between replies ...

I downloaded the newest version, and the three bugs I have posted before (autocomplete on with, with blocks do not indent correctly, and the OffsetOf) have been fixed :) Thanks very much! I havent been able to test out the auto-declare bug on the newest version yet, but I definately will :)

Here's another bug I reported awhile ago that the author refused to fix.

The indentation of CompilerIf/CompilerEndIf does not work. It's doing the samething With/EndWith did until recently. Basically..

Code: Select all

; This is wrong!
CompilerIf
Whee.s = "FooBar"
CompilerEndIf

; This is correct!
CompilerIf
     Whee.s = "FooBar"
CompilerEndIf
JaPBe will do the wrong indention, while the correct one should be done.

Posted: Sun Mar 05, 2006 9:45 am
by einander
Great work Gnozal!

There is a indent fail: equal after comment

Code: Select all

For i= 1 To 10
    a+1
Next          ; OK

For i= 1 To 10  ;= 1 
        a+1   ; Fail
    Next    

Posted: Sun Mar 05, 2006 4:12 pm
by Dummy
Shannara wrote:Sorry for the long downtime between replies ...

I downloaded the newest version, and the three bugs I have posted before (autocomplete on with, with blocks do not indent correctly, and the OffsetOf) have been fixed :) Thanks very much! I havent been able to test out the auto-declare bug on the newest version yet, but I definately will :)

Here's another bug I reported awhile ago that the author refused to fix.

The indentation of CompilerIf/CompilerEndIf does not work. It's doing the samething With/EndWith did until recently. Basically..

Code: Select all

; This is wrong!
CompilerIf
Whee.s = "FooBar"
CompilerEndIf

; This is correct!
CompilerIf
     Whee.s = "FooBar"
CompilerEndIf
JaPBe will do the wrong indention, while the correct one should be done.
What about this:

Code: Select all

CompilerIf #JaPBe_DebuggerIsRunning
If blub = 1
  CompilerEndIf
  Whee.s = "FooBar"
  CompilerIf #JaPBe_DebuggerIsRunning
EndIf
CompilerEndIf
I think it is better not to do indentation on "Compiler*" directives as these can be used in many ways where that indentation would be really confusing

Posted: Mon Mar 06, 2006 8:55 am
by gnozal
Dummy wrote:I think it is better not to do indentation on "Compiler*" directives as these can be used in many ways where that indentation would be really confusing
I agree. I don't think this is a bug, it's a feature !

Posted: Mon Mar 06, 2006 9:08 am
by gnozal
einander wrote:Great work Gnozal!

There is a indent fail: equal after comment

Code: Select all

For i= 1 To 10
    a+1
Next          ; OK

For i= 1 To 10  ;= 1 
        a+1   ; Fail
    Next    
It's a feature, not a bug :wink:
jaPBe's readme.txt wrote:New in Version 2.4.9.25
#######################
...
* Manual indent - Marks
Example
compilerif #debug ;>
dothis()
compilerelse ;=
dothat
compilerendif ;<
...
';=' is a manual indent mark

Posted: Mon Mar 06, 2006 10:09 am
by einander
:oops:

Image

Posted: Mon Mar 06, 2006 5:24 pm
by gnozal
Update

Changes :
- added some folding marker styles, including a PB IDE style.
- added custom subsystem in Project/Options [language file entry 490]

Posted: Mon Mar 06, 2006 6:25 pm
by jack
einander wrote::oops:

Image
it took me 2 hours but i think i got the joke, "VolksWagen Bug" :lol:

Posted: Mon Mar 06, 2006 7:43 pm
by einander
Gnozal says:
It's a feature, not a bug :wink:

Posted: Mon Mar 06, 2006 8:29 pm
by chen
New to jaPBe,

Sorry to ask in this forum a newbe question....

How I can debug in jaPBe?

Is it the same as the IDE PB or with another tools....?

could you give a hand here????

thanks :oops:

Posted: Mon Mar 06, 2006 10:26 pm
by Dare2
LOL!

Will never see "Feature/Bug" again without remembering that VW!

Posted: Mon Mar 06, 2006 11:19 pm
by chen
Somebody have some minutes to teach me how to debug in jaPBe..? :roll: