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

dynamic breakpoint support #41

Open
GentleCP opened this issue Oct 12, 2023 · 7 comments
Open

dynamic breakpoint support #41

GentleCP opened this issue Oct 12, 2023 · 7 comments

Comments

@GentleCP
Copy link

Hi, the recent version of idacode does not support adding breakpoints with vscode (F9), we have to add breakpoint() function in advance, which makes the debug process more complex. In previous versions of idacode, I remember it is feasible to add a breakpoint with vscode (F9) as long as one breakpoint() function has been added. Is it a bug that should be fixed or not? If not, is it possible to support adding a breakpoint with vscode?

image

@ioncodes
Copy link
Owner

You're right that one breakpoint() used to be enough to make it work. This seems to be odd, but I actually have not tested idacode with the latest IDA. Which version are you on currently? Perhaps there's some sort of incompatibility issue. If you're using an older IDA version I'd probably need more information.

@GentleCP
Copy link
Author

The following text includes the environment I have used:

  • OS: ubuntu22.04
  • IDA Pro: linux 7.5
  • idacode: latest
  • debugpy: 1.6.7.post1
  • tornado: 6.3.3
  • vscode idacode plugin: v0.3.0

@ioncodes
Copy link
Owner

Hmm, the IDA version should be supported, however, it might be a Linux issue. I don't think we ever tested idacode on Linux and macOS. I can only come up with it being either a platform issue or that there's a quirk in the Linux version of IDA. I don't have a Linux copy of IDA so I can't really reproduce it on my side. Do you have a VM with the same issue that you might be able to share with me (you can remove the ida.key if that's an issue)?

Alternative idea that I came up with while writing this issue: There used to be a debugging bug with specific debugpy versions. I know that debugpy===1.0.0rc2 should have been stable at one point, can you try again with this specific version installed?

@ioncodes
Copy link
Owner

Did that solve your issue?

@GentleCP
Copy link
Author

Sorry for forgetting to reply, well, I have tried debugpy===1.0.0rc2, however, when I connect ida with idacode, a new exception occurred as follows:
image

@GentleCP
Copy link
Author

I also have tried some old version of idacode (0.2.2) and debugpy (1.5.0, 1.6.5,1.2.0,1.1.0), unfortunately, none of them could solve the above issue.

@ioncodes
Copy link
Owner

I think that means we'd have to circle back to possibly setting up a VM to test this out, but I don't have a Linux license on hand...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants