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

Implemented debugger helpers for debugging in vscode with visualizer extensions and gdb #214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hediet
Copy link
Member

@hediet hediet commented Jan 21, 2019

No description provided.

@@ -63,36 +63,108 @@ use std::{
thread::{self, JoinHandle},
};

#[cfg(feature = "debugger_gui")]
#[cfg(any(feature = "debugger_gui", feature = "debugger_vscode"))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since both breakpoint implementations have nothing in common, why not make a seprate #[cfg(feature = "debugger_vscode")] implementation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They have a lot in common. This way, you can use the debugger server and I can use the debugger visualizer in vs code without needing to change anything or having code duplicates.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I mean is this:

#[cfg(feature = "debugger_gui")]
macro_rules! breakpoint {
// all the stuff from the if-truee-branches in the current impl
}
#[cfg(feature = "debugger_vscode")]
macro_rules! breakpoint {
// all the stuff from the else-branches in the current impl
}

@reiner-dolp
Copy link
Contributor

This fails because of clippy errors

@problame problame added this to General Todo in Endspurt Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Endspurt
  
General Todo
Development

Successfully merging this pull request may close these issues.

None yet

2 participants