B4J Question Debugger in Console app

Discussion in 'B4J Questions' started by madru, Jul 17, 2015.

  1. madru

    madru Active Member Licensed User

    Hi,

    not sure whats going on......

    the B4I debugger does not stop on breakpoints (most of the times).

    untitled.png

    If start the compilation several times then the debugger kicks in randomly

    Have you seen the same behaviour ?

    M
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you sure that you are in debug mode?
     
  3. madru

    madru Active Member Licensed User

    yes, 100%....

    sometimes the debugger kicks in but most of the time not , there is no pattern - completely random
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. madru

    madru Active Member Licensed User

    here is the output...
    .Net version: 4.0.30319.34014
    Gui: 1074
    Gui: 1177
    Gui: 1080
    B4XClassifer created
    B4XErrorTagger created
    Gui: 1058
    Gui: 1023
    Gui: 1200
    Gui: 1226
    Gui: 1052
    *** no reuse ***
    Gui: 1701
    Gui: 357
    Gui: 98
    Gui: 59
    Gui: 81
    Gui: 62
    B4XClassifer created
    B4XErrorTagger created
    *** no reuse ***
    Gui: 232
    Gui: 152
    Gui: 56
    Compilation task: 296.8763
    Gui: 70
    Gui: 440
    Gui: 107
    Gui: 87
    Gui: 75
    Gui: 118
    Gui: 76
    Gui: 53
    Gui: 60
    Gui: 72
    Gui: 71
    Gui: 70
    Gui: 175
    Gui: 71
    Gui: 56
    Gui: 70
    Gui: 53
    Gui: 90
    Compilation task: 7421.998

    Trying to connect to port: 59812
    Gui: 184
    Gui: 220
    Gui: 99
    Gui: 89
    Gui: 70
    Gui: 65

    Trying to connect to port: 59929

    Trying to connect to port: 59812
    Connected!
    Connected
    RD: connected: true
    RD: handleIncomingData
    RD: getLineNumbers
    RD: codeChainStart: CREATE
    RD: createModule: b4j.example.main
    RD: handleIncomingData
    RD: codeChainStart: appstart
    RD: main: appstart can delegate? false
    RD: reach bp: 13
    Gui: 109
    Gui: 73
    RD: handleIncomingData
    RD: GET_DEBUG_VAR
    RD: remoteObjectArrivedFromDevice: Args
    Gui: 80
    Stopping RapidDebugger
    RD e: java.net.SocketException: Socket operation on nonsocket: recv failed
    RD e: at java.net.SocketInputStream.socketRead0(Native Method)
    RD e: at java.net.SocketInputStream.read(SocketInputStream.java:152)
    RD e: at java.net.SocketInputStream.read(SocketInputStream.java:122)
    RD e: at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    RD e: at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    RD e: at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:190)
    RD e: at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:185)
    RD e: at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:114)
    RD e: at java.lang.Thread.run(Thread.java:744)
    RD: connected: false
    Gui: 107
    ExitCode: -1
    Output:

    Error:

    Gui: 98
    Gui: 251
    Gui: 53
    Gui: 51
    Gui: 92
    Gui: 90
    Gui: 140
    Gui: 161
    Gui: 72
    Gui: 78
    Gui: 69
    Gui: 218
    Gui: 105
    Gui: 91
    Gui: 81
    Gui: 105
    Gui: 146
    Gui: 52
    Gui: 177
    Gui: 52
    Gui: 70
    Gui: 108
    Gui: 65
    Compilation task: 6613.1793

    Trying to connect to port: 59812
    Gui: 324
    Gui: 52
    Gui: 62
    Gui: 100
    Gui: 70
    Gui: 74

    Trying to connect to port: 59929

    Trying to connect to port: 59812
    Connected!
    Connected
    RD: connected: true
    RD: handleIncomingData
    RD: getLineNumbers
    RD: codeChainStart: CREATE
    RD: createModule: b4j.example.main
    Gui: 55
    RD: handleIncomingData
    RD: codeChainStart: appstart
    RD: main: appstart can delegate? true
    RD: setStateBeforeUserSub: appstart
    RD: getStateAfterUserSub
    RD e: java.net.SocketException: Connection reset
    RD e: at java.net.SocketInputStream.read(SocketInputStream.java:196)
    RD e: at java.net.SocketInputStream.read(SocketInputStream.java:122)
    RD e: at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    RD e: at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    RD e: at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:190)
    RD e: at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:185)
    RD e: at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:114)
    RD e: at java.lang.Thread.run(Thread.java:744)
    RD: connected: false
    Stopping RapidDebugger
    ExitCode: 0
    Output:

    Error:

    Gui: 116
    Gui: 184
    Gui: 130
    Gui: 131
    Gui: 113
    Gui: 263
    Gui: 136
    Gui: 675
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    What happened in the IDE when you ran the project? Based on the logs it did reach the breakpoint. At least in the first case.
     
  7. madru

    madru Active Member Licensed User

    I can see the the changed GUI (Debugger) for a fraction, thats all
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Something is breaking the connection between the debugger and the app. You can try to temporary disable the firewall and antivirus and see whether it has any effect.
     
  9. madru

    madru Active Member Licensed User

    tried that already, no difference
     
    Last edited: Jul 20, 2015
  10. BeneBarros

    BeneBarros Active Member Licensed User

    I am with this same problem, only in large applications, the small works perfect.
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    If you like, send me the project and I'll try it here.
     
Loading...