vscode-ext
vscode-ext copied to clipboard
`Truffle: Debug Transaction` source file's cannot be correctly matched
ctrl + shift + p
=> pop-up command list => select ”Truffle: Debug Transaction“
issues: Transaction list selection not triggered
ganache is started!
Hi @pupudaye, thanks for sending this.
Does the ganache instance have some transactions to select from? In other words, did you first deploy any contract to that instance? If so, can you specify the version of the extension you are running?
Thanks, I have solved this problem! But I have a new problem, the source file cannot be correctly matched when debugging. What is the reason?
Glad to hear you solved the first issue. As for the second one, to help us troubleshoot, will you be able to provide some steps to reproduce the issue or a corresponding repo (if it's a public project)?
The truffle development case "metacoin" can be debugged normally, but it can't be debugged properly when switching to complex projects that rely on contracts.
The steps are not easy to express clearly, or can you give me some advice, how should I configure vscode setting.json and launch.json .
Is it because of relying on third-party libraries, such as: openzeppelin?
My best guess is that it's related to https://github.com/trufflesuite/vscode-ext/issues/54. We are experiencing some issues while debugging non-trivial Truffle projects.
We are investigating the root cause of this issue.
Hey @pupudaye, quick heads up that we've identified the issue and have a fix coming shortly (cc @xhulz) 👍
Hey @pupudaye, quick heads up that we've identified the issue and have a fix coming shortly (cc @xhulz) 👍
OK thks!
Hey @pupudaye, apologies for the slight delay in follow-up to this one. However, good news in that the fix for this should hopefully now be in place (as of v2.6.0
). Feel free to give it a try and let us know how you get on it 🤞