Comments (12)
To break in the code make sure to call breakpoint
before you attempt to break on VS Code's "dots". https://github.com/ioncodes/idacode#debugging
from idacode.
I'll close this for now, if there's still an issue feel free to reopen the issue!
from idacode.
To break in the code make sure to call
breakpoint
before you attempt to break on VS Code's "dots". https://github.com/ioncodes/idacode#debugging
@ioncodes I did add breakpoint first, and then create dot breakpoint on VSC, but those breakpoint turn gray immediately, I found that I can set breakpoint outside call to execfile, but not the code inside execfile. I am using python 2.7 shipped with IDA 7.0, I attach the debugpy log, thanks.
debugpy.server-34804.log
debugpy.adapter-44868.log
from idacode.
Are you debugging an IDA plugin? Can you show me parts of the source code?
from idacode.
From the adapter logs:
Client[1] <-- {
"seq": 6,
"type": "response",
"request_seq": 3,
"success": true,
"command": "setBreakpoints",
"body": {
"breakpoints": [
{
"source": {
"path": "D:\\idacode\\objc2_xrefs_helper.py",
"name": "d:\\idacode\\objc2_xrefs_helper.py",
"sourceReference": 1
},
"message": "Breakpoint in file that does not exist.",
"verified": false,
"line": 568
}
]
}
}
Is the path in that JSON correct?
from idacode.
I just create a directory named idacode, not debug plugin code, here is the files in that directory, please check.
YesοΌ I can confirm that the directory is correct on windows, thanks.
from idacode.
I just tried this on IDA 7.5 with Python 3, where did you put the "breakpoint" line?
from idacode.
I put the same line as yours, but it is not working, maybe something todo with python version? I use python2.7 shipped with IDA 7.0.
from idacode.
It may indeed be an issue with Python 2.7 and IDA 7.0. I'll check whether it works for me on that version.
from idacode.
How did you load the plugin in that version of IDA? I placed the files in the plugin directory but it isn't being loaded.
from idacode.
Place it in plugin folder, and change some code due to python 2.7 don't have asyncio. You can find the change here: https://github.com/ioncodes/idacode/pull/13/files/0319005853db6e2b126fd0b731abdf8380f438ae
from idacode.
Same to me, Python 3.8.10 and IDA 7.5.
from idacode.
Related Issues (20)
- debugpy may not free port HOT 2
- if __name__ ==... causes error HOT 9
- Version HOT 2
- How to debug plugins? HOT 7
- Unable to attach debugger after debugpy 1.0.0 release HOT 2
- Unable to set breakpoint (BdbQuit exception)
- IDACode does'nt analyze Var type HOT 1
- Two one-line patches HOT 2
- VSC, Can't connect to IDA and attach a debugger. HOT 6
- a key error in use vscode connect to ida HOT 2
- Is it supported on Ubuntu? and i got some trouble ;ida can not install idacode plugin HOT 3
- Debugger is not working. HOT 5
- Option to turn off IDACode plugin in IDA and VSCode HOT 2
- IDA has no python.exe but exists python64.dll, In such case how to specify the python path in settings.py? HOT 4
- Imported module not updated HOT 2
- NameError: name 'idaaip' is not defined HOT 1
- Pycharm support HOT 2
- dynamic breakpoint support HOT 7
- Workspace is "undefined" when skipping InputBox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idacode.