ESP ExceptionDecoder with Arduino IDE 2.3.4

How can I use ESP ExceptionDecoder with Arduino IDE 2.3.4?

Thank you.

Not sure what question is being asked here? Are you asking about installing it in the IDE, or actually using it to debug?

Both are discussed here:

httpx://github.com/me-no-dev/EspExceptionDecoder
(see ptillisch link below)

When you cut and paste the stack trace as indicated, it will show you the line number in the code where the exception occurred and a traceback of files and line numbers where it was called from.

One thing to watch is to expand the window to make sure to display and capture the whole stack trace.

That is the Tool for Arduino IDE 1.x and can't be used with Arduino IDE 2.x.

The extension for use with Arduino IDE 2.x is here:

@bojan_jurca follow the instructions in the documentation at the link above to install and use the exception decoder for Arduino IDE 2.x. If you have any problems or questions while doing that, just let us know and we'll provide further assistance.

Oops, wrong link. Sorry!

1 Like

I suppose this is the right release link: Release 1.0.2 · dankeboy36/esp-exception-decoder · GitHub

When I run esp-exception-decoder-1.0.2.vsix

I get an error Install failed. Here is installation log:

13. 02. 2025 20:06:35 - Microsoft VSIX Installer
13. 02. 2025 20:06:35 - -------------------------------------------
13. 02. 2025 20:06:35 - vsixinstaller.exe version:
13. 02. 2025 20:06:35 - 17.1.1035-preview2
13. 02. 2025 20:06:35 - -------------------------------------------
13. 02. 2025 20:06:35 - Command line parameters:
13. 02. 2025 20:06:35 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\uporabnik\Downloads\esp-exception-decoder-1.0.2 (1).vsix
13. 02. 2025 20:06:35 - -------------------------------------------
13. 02. 2025 20:06:35 - Microsoft VSIX Installer
13. 02. 2025 20:06:35 - -------------------------------------------
13. 02. 2025 20:06:36 - Initializing Install...
13. 02. 2025 20:06:36 - Extension Details...
13. 02. 2025 20:06:36 - 	Identifier         : esp-exception-decoder
13. 02. 2025 20:06:36 - 	Name               : ESP Exception Decoder
13. 02. 2025 20:06:36 - 	Author             : dankeboy36
13. 02. 2025 20:06:36 - 	Version            : 1.0.2
13. 02. 2025 20:06:36 - 	Description        : ESP8266/ESP32 Exception Decoder Extension for the Arduino IDE
13. 02. 2025 20:06:36 - 	Locale             : en-US
13. 02. 2025 20:06:36 - 	MoreInfoURL        : 
13. 02. 2025 20:06:36 - 	InstalledByMSI     : False
13. 02. 2025 20:06:36 - 	SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
13. 02. 2025 20:06:36 - 
13. 02. 2025 20:06:36 - 	SignatureState     : Unsigned
13. 02. 2025 20:06:36 - 	Supported Products : 
13. 02. 2025 20:06:36 - 		Microsoft.VisualStudio.Code
13. 02. 2025 20:06:36 - 			Version : 
13. 02. 2025 20:06:36 - 			ProductArchitecture : x86
13. 02. 2025 20:06:36 - 
13. 02. 2025 20:06:36 - 	References         : 
13. 02. 2025 20:06:36 - Signature Details...
13. 02. 2025 20:06:36 - 	Extension is not signed.
13. 02. 2025 20:06:36 - 
13. 02. 2025 20:06:36 - Searching for applicable products...
13. 02. 2025 20:06:36 - Found installed product - Global Location
13. 02. 2025 20:06:36 - Found installed product - Visual Studio Community 2022
13. 02. 2025 20:06:36 - VSIXInstaller.NoApplicableSKUsException: One or more extensions are for Visual Studio Code. Try installing them in Visual Studio Code.
   at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Can you help me with this?

You aren't supposed to run it. As I said in my previous reply, you must follow the instructions in the extension's documentation to install it.

Perhaps the instructions were unclear? I'll provide more specific instructions you can follow:

  1. If Arduino IDE is running, select File > Quit from the Arduino IDE menus.
    All Arduino IDE windows will close.
  2. Click the following link to open the extension's release page:
    https://github.com/dankeboy36/esp-exception-decoder/releases/latest
  3. Click the download link for the .vsix file under the "Assets" section of the release page.
    A file download will start.
  4. Wait for the download to finish.
  5. Create a folder named plugins under Arduino IDE's configuration folder:
    • Windows:
      C:\Users\<username>\.arduinoIDE\
      
      (where <username> is your Windows username)
    • Linux:
      /home/<username>/.arduinoIDE/
      
      (where <username> is your Linux username)
      :exclamation: The .arduinoIDE folder may be hidden by default in your file manager and terminal.
    • macOS:
      /Users/<username>/.arduinoIDE/
      
      (where <username> is your macOS username)
      :exclamation: The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
  6. Copy the downloaded .vsix file to the plugins folder you created.
  7. Start Arduino IDE.

You can then follow the usage instructions from the extension's documentation:

https://github.com/dankeboy36/esp-exception-decoder#usage

If you have any problems or questions while doing that, just let us know and we'll provide further assistance.

1 Like

I'm sorry, I'm bad at following the instructions. Thank you, this works.

You are welcome. I'm glad it is working now.

Regards, Per