This extension allows debugging via Target Communication Framework (TCF) from Visual Studio Code.
Manage breakpoints, resume after breakpoint hit, see the call stack and variables.
More details in the extension README
Visual Studio Code Target Communication Framework (TCF) Debugger Extension
License: MIT License
This extension allows debugging via Target Communication Framework (TCF) from Visual Studio Code.
Manage breakpoints, resume after breakpoint hit, see the call stack and variables.
More details in the extension README
As mentioned in #1, here's a sample from the debug log. This is probably two issues in one - something is failing during processing of the Result, and the timeout is only being disabled when the Result is parsed, rather than unconditionally upon reception.
19:49:42 ➡️ Sending C StackTrace/5/getContext/FP15.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP14.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP13.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP12.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP11.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP10.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP9.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP8.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP7.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP6.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0 StackTrace getContext ["FP15.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP14.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP13.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP12.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP11.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP10.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP9.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP8.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP7.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0","FP6.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0"]
19:49:42 ⬅️ Received Result StackTrace/5/getContext/FP15.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP14.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP13.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP12.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP11.JTAG-jsn-JTAG-HS3-210299A8E504 ["[{\"ID\":\"FP15.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":15,\"Level\":0,\"IP\":1687703632},{\"ID\":\"FP14.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":14,\"Level\":1,\"IP\":1687703632,\"RP\":1687703632},{\"ID\":\"FP13.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":13,\"Level\":2,\"Walk\":true,\"FP\":1689847800,\"IP\":1683978232,\"RP\":1687703632},{\"ID\":\"FP12.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":12,\"Level\":3,\"Walk\":true,\"FP\":1689847776,\"IP\":1685922928,\"RP\":1683978232},{\"ID\":\"FP11.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":11,\"Level\":4,\"Walk\":true,\"FP\":1689847712,\"CodeArea\":{\"SAddr\":1684653824,\"SLine\":171,\"EAddr\":1684654128,\"ELine\":172,\"File\":\"messages.cpp\",\"Dir\":\"/home/james.churchill/lib/gamen/common\"},\"IP\":1684654112,\"RP\":1685922928},{\"ID\":\"FP10.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":10,\"Level\":5,\"Walk\":true,\"FP\":1689847712,\"Inlined\":1,\"FuncID\":\"@M0.@S3%FD04.FC21F9.6530C356.124.35C90B+2.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"CodeArea\":{\"SAddr\":1684654100,\"SLine\":181,\"EAddr\":1684654112,\"ELine\":182,\"File\":\"message_queue.hpp\",\"Dir\":\"/home/james.churchill/lib/gamen/common\"},\"IP\":1684654112,\"RP\":1684654112},{\"ID\":\"FP9.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":9,\"Level\":6,\"Walk\":true,\"FP\":1689847712,\"Inlined\":2,\"FuncID\":\"@M0.@S3%FD04.FC21F9.6530C356.124.35CC85+2.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"IP\":1684654112,\"RP\":1684654112},{\"ID\":\"FP8.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":8,\"Level\":7,\"Walk\":true,\"FP\":1689847624,\"CodeArea\":{\"SAddr\":1686846852,\"SLine\":506,\"EAddr\":1686847040,\"ELine\":507,\"File\":\"eth.cpp\",\"Dir\":\"/home/james.churchill/lib/gamen/network/eth\"},\"IP\":1686846892,\"RP\":1684654112},{\"ID\":\"FP7.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":7,\"Level\":8,\"Walk\":true,\"FP\":1689847624,\"Inlined\":1,\"FuncID\":\"@M0.@S3%FD04.FC21F9.6530C356.124.2A72064+2.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"CodeArea\":{\"SAddr\":1686846852,\"SLine\":465,\"EAddr\":1686846896,\"ELine\":466,\"File\":\"eth.cpp\",\"Dir\":\"/home/james.churchill/lib/gamen/network/eth\"},\"IP\":1686846892,\"RP\":1686846892},{\"ID\":\"FP6.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ParentID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"ProcessID\":\"JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"Index\":6,\"Level\":9,\"Walk\":true,\"FP\":1689847624,\"Inlined\":2,\"FuncID\":\"@M0.@S3%FD04.FC21F9.6530C356.124.2A720C6+2.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0\",\"CodeArea\":{\"SAddr\":1686846884,\"SLine\":368,\"EAddr\":1686846896,\"ELine\":369,\"File\":\"eth.cpp\",\"Dir\":\"/home/james.churchill/lib/gamen/network/eth\"},\"IP\":1686846892,\"RP\":1686846892}]","",""]
19:49:52 Command timeout StackTrace/5/getContext/FP15.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP14.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP13.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP12.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP11.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP10.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP9.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP8.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP7.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0+FP6.JTAG-jsn-JTAG-HS3-210299A8E504-5ba00477-0R0
I can connect to tcf agent on target with port 1534. And how to configure the program and file symbol to debug it?
From the configurations of launch.json, I can't find like "program" attributes to configure it. Thanks
I tried to connect the extension to a running TRACE32 debugger (with TCF enabled)
This is the log I get:
13:09:41 TCF debug session initialized
13:09:41 Launch request [object Object]
13:09:41 Connected!
13:09:41 ➡️ Sending ELocatorHello["Locator"]��
13:09:41 ⬅️ Received Locator Hello ["ZeroCopy","T32_OsAwareness","DPrintf","Profiler","Streams","LineNumbers","MemoryMap","Memory","Breakpoints","Expressions","WR_SymbolsList","Symbols","StackTrace","Disassembly","PathMap","Registers","RunControl","Locator"]
13:09:41 ➡️ Sending CContextQuery/0ContextQueryquery"*"��
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:127.0.0.1:1534"
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:192.168.56.1:1534"
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:192.168.78.1:1534"
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:192.168.10.1:1534"
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:172.24.144.1:1534"
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:172.23.0.1:1534"
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:10.99.64.24:1534"
13:09:46 ⬅️ Received Locator peerHeartBeat "TCP:192.168.187.30:1534"
13:09:51 Command timeout ContextQuery/0
Increasing Timeout is not helpful.
Now I can see that it doesn't find the source file, but I can see the path given in the log:
Originally posted by @wwbenayed in #1 (comment)
Also, neither continue, break or step is working (nothing printed in the log when I press the buttons in VSCode).
Originally posted by @wwbenayed in #1 (comment)
Hi @iebold,
this is great news. I would like to develop under VSCode for the Xilinx MPSoC devices without using the tools from xilinx(Requires 40Gb of space and dont perform good under Linux.).
Could you please provide the link to the extension (.VSIX file)? I dont find it under the repo.
Using TRACE32, I remarked that the current pointer in VSCode should be on the next line.
I can see this request :
14:35:56 ➡️ Sending CStackTrace/1 StackTracegetContext["FP1.2.0.root","FP0.2.0.root"]
14:35:56 ⬅️ Parsing async result StackTrace/1
14:35:56 ⬅️ Parsing async result StackTrace/1
14:35:56 ⬅️ Received Result StackTrace/1 ["[{\"ID\":\"FP1.2.0.root\",\"ParentID\":\"root\",\"ProcessID\":\"root\",\"Index\":1,\"Level\":1,\"Walk\":true,\"FP\":536882928,\"FuncID\":\"@S100.0_2000047C.0_2000047B.10000000.i0.0_0\",\"IP\":536872066,\"RP\":536872066},{\"ID\":\"FP0.2.0.root\",\"ParentID\":\"root\",\"ProcessID\":\"root\",\"Index\":0,\"Level\":2,\"TopFrame\":true,\"Walk\":true,\"FP\":536882792,\"FuncID\":\"@S20.0_2000127C.0_200016AF.10000000.i0.0_0\",\"IP\":536876030}]","null",""]
then this one:
14:35:56 ➡️ Sending CLineNumbers/1 LineNumbersmapToSource "root" 536876029 536876030
The correct request should be:
14:35:56 ➡️ Sending CLineNumbers/1 LineNumbersmapToSource "root" 536876030 536876031
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.