Welcome to Our Community

Some features disabled for guests. Register Today.

Running OB Control in VS Code debugger...

Discussion in 'Control Software' started by UltiBots, Feb 16, 2021.

  1. UltiBots

    UltiBots Well-Known
    Builder

    Joined:
    May 8, 2014
    Messages:
    57
    Likes Received:
    76
    Hi All - I've been exploring changes to the OpenBuilds CONTROL software using VS Code. I am successful in making changes to probing function and generating a new dmg package on OSX. However I'm running into issues with debugger and the USB passthrough. Your excellent code and my basic tweaks opens with the Live Server extension but I no longer have access to the USB port to connect to Black Box.

    I'd appreciate some direction... cheers - Brad
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,050
    Likes Received:
    4,313
  3. UltiBots

    UltiBots Well-Known
    Builder

    Joined:
    May 8, 2014
    Messages:
    57
    Likes Received:
    76
    Thanks for the reply... I was able to connect and get a snapshot. But this doesn't appear to allow me to debug with watchpoints, examine variables, etc...

    I've cloned the project, can successfully build it, run my code changes, but haven't figured out how to get USB working in the debugger instance. Hopefully someone in our community is developing in OS X and can provide some guidance. Cheers - Brad

    Screen Shot 2021-02-17 at 9.12.28 AM.png
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,050
    Likes Received:
    4,313
    But why though :)

    USB is handled by the SerialPort library (well, USB is handled by the device driver, presenting just a plain serial port to the OS, to which Node Serialport connects: About SerialPort | Node Serialport
     
  5. Armin Stahl

    Builder

    Joined:
    Dec 13, 2023
    Messages:
    1
    Likes Received:
    0
    Hello Peter,
    my name is Armin from Germany and I try to make some changes for fluidnc in your amazing Openbuilds control app. I have the problem in VSC as well as in Google's devtools that I can't link the source files to the debugger (unbind) and therefore I can't set breakpoints, for example. According to my research, I would have to run the build script once, but I can't find any hints there either. Please give me some hints and get me out of my "brain-tunnel" ;). Thank you in advance
     
  6. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,050
    Likes Received:
    4,313
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,050
    Likes Received:
    4,313
    Yes we just run electron-builder Electron Builder to package.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice