Debug and use of breakpoints

Former Member
Former Member
Hi,

For now the only way I know to debug is just by using "Sys.println" to print.
Is it possible to debug, and use breakpoints in Eclipse, command line, or any other way ?

I've found this post asking same question from 1/2016, but then the answer was "no",
I wonder if something has changed.

https://forums.garmin.com/forum/developers/connect-iq/119949-?p=852286#post852286

And if not possible now, it is it planned ?
Either debug on real device, or on simulator.

Thanks for your help,
Si.


  • There's a debugger. It's been available using eclipse since 2.3.x (April 2017) Just for the sim, not on the real device.
  • Former Member
    Former Member
    iksi , great question! jim_m_58 is correct. We have a basic overview of where it's at and how to use it here: https://developer.garmin.com/connect-iq/programmers-guide/how-to-test/

    Thanks!

    -Coleman
  • Former Member
    Former Member
    iksi , great question! jim_m_58 is correct. We have a basic overview of where it's at and how to use it here: https://developer.garmin.com/connect-iq/programmers-guide/how-to-test/

    Thanks!

    -Coleman


    Coleman.ConnectIQ, @jim_m_58
    Thanks !

    I guess that Eclipse communicates with the Simulator/Debugger via TCP (?, I've noticed simulator.exe is listening on port 9930, and also used some packets sniffer).
    I don't use Eclipse, so I wonder if I can use it via command line, and/or adapt my IDE to use it.
    Is this protocol public\documented ?



  • Former Member
    Former Member
    iksi ,

    We do not have our protocol documented publicly at this time.

    Thanks,
    -Coleman
  • Former Member
    Former Member
    iksi ,

    We do not have our protocol documented publicly at this time.

    Thanks,
    -Coleman


    @Coleman.ConnectIQ

    Feature request:

    Public your API/protocol of the simulator/debugger,
    so it will be possible to add support for debugging in other popular IDEs, eg Visual Studio Community/Code.

  • Even if you dislike Eclipse, you'll likely find other things in eclipse you'll want - such as the "App Settings Editor", the project templates (including for building Monkey Barrels in 2.4.x), creating the jungle files for things like attaching barrels to a project, etc. Stuff you can sometimes do by hand, but is simple to do in Eclipse with a click or two. (The App Settings Editor is only available with the Eclipse plugin). Some of this stuff you may not have needed yet, but you probably will, IMHO.
  • Former Member
    Former Member
    Even if you dislike Eclipse, you'll likely find other things in eclipse you'll want - such as the "App Settings Editor", the project templates (including for building Monkey Barrels in 2.4.x), creating the jungle files for things like attaching barrels to a project, etc. Stuff you can sometimes do by hand, but is simple to do in Eclipse with a click or two. (The App Settings Editor is only available with the Eclipse plugin). Some of this stuff you may not have needed yet, but you probably will, IMHO.



    Thanks for your suggestion, but as a personal preference, I do prefer Visual Studio.