vscode-ext icon indicating copy to clipboard operation
vscode-ext copied to clipboard

`Truffle: Debug Transaction` source file's cannot be correctly matched

Open pupudaye opened this issue 2 years ago • 8 comments

ctrl + shift + p

=> pop-up command list => select ”Truffle: Debug Transaction“

issues: Transaction list selection not triggered

ganache is started!

pupudaye avatar Sep 05 '22 04:09 pupudaye

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?

acuarica avatar Sep 12 '22 13:09 acuarica

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?

pupudaye avatar Sep 13 '22 13:09 pupudaye

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)?

acuarica avatar Sep 13 '22 15:09 acuarica

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?

pupudaye avatar Sep 14 '22 08:09 pupudaye

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.

acuarica avatar Sep 15 '22 16:09 acuarica

Hey @pupudaye, quick heads up that we've identified the issue and have a fix coming shortly (cc @xhulz) 👍

kevinbluer avatar Sep 23 '22 22:09 kevinbluer

Hey @pupudaye, quick heads up that we've identified the issue and have a fix coming shortly (cc @xhulz) 👍

OK thks!

pupudaye avatar Sep 24 '22 08:09 pupudaye

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 🤞

kevinbluer avatar Nov 02 '22 22:11 kevinbluer