NodeJs debug with WebStrom - org.jetbrains.v8.protocol.V8Pro

I’m trying to debug a Remote NodeJs app (Volumio)

I’m able to set break points and step over the code, but when I try to inspect a value of any variable I get

org.jetbrains.v8.protocol.V8ProtocolReaderImpl$Mi cannot be cast to org.jetbrains.v8.protocol.ValueHandle

I assume it’s some version issues between the local and remote env, but any help would be appreciated.

SOLVED:
In volumio ssh do:

sudo apt-get upgrade
sudo apt-get update

You really should avoid doing this as it is likely to cause problems with your Volumio installation.

You’re encountering a compatibility issue between your local debugger and the remote Node.js environment. The error indicates a mismatch in the V8 protocol, likely due to different Node.js versions between your local and remote setups. Ensure both environments are running the same Node.js version, as differences in the V8 engine can cause debugging issues. If you’re using WebStorm, update both the IDE and the Node.js plugin to the latest versions. Also, try adjusting the debugging setup—using --inspect instead of --inspect-brk may help. If the problem persists, consider using Chrome DevTools for remote debugging, as it might provide better compatibility.