Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a xoder I want to run live sessions so that I can debug my program #459

Closed
8 of 9 tasks
nkrkv opened this issue Apr 14, 2017 · 0 comments · Fixed by #785
Closed
8 of 9 tasks

As a xoder I want to run live sessions so that I can debug my program #459

nkrkv opened this issue Apr 14, 2017 · 0 comments · Fixed by #785

Comments

@nkrkv
Copy link
Member

nkrkv commented Apr 14, 2017

Old good print to the stdout… can debug anything.

XOD IDE should give the ability to see debug output from a board like Arduino’s serial monitor does.

Acceptance criteria

  • I can mark check box “Debug after upload” in the “Upload” popup
  • Once debug started, a window with serial output log (Debugger) appears
  • I see data in the log as it appears on serial port
  • I can click “Stop” to disconnect
  • The session automatically stops if I choose to deploy again while the debug session is running
  • The session automatically stops if I change the project somehow, a message like “Debug session stopped” is shown
  • The log gets cleared on debugger start
  • The log is limited to 1000 most recent lines (to keep performance bounds)
  • The View main menu contains “Toggle Debugger” item to show/hide the Debugger pane, i.e. it just controls visibility

Out of scope

  • Bringing project to read-only mode
  • Sticky scrolling of the log. Although if there is a suitable component that works out of the box, it would be nice

How to implement

  • Remember port characteristics (name, VID, PID) when starting upload
  • Right after successful upload open the serial port again for watching
  • If the port with the name recorded has gone, use VID and PID to find it
  • If the port still lost, try again 3 times with 250 ms delay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants