chakra-core / ChakraCore

ChakraCore is an open source Javascript engine with a C API.
MIT License
9.06k stars 1.19k forks source link

How can I debug ch.exe ? #6969

Closed mosheDO closed 1 month ago

mosheDO commented 5 months ago

Hi

I'm trying to debug the ch.exe file in Visual Studio, but it crashes immediately and I couldn't find any Wiki/Tutorial on that. is this a known issue? or there anything related to that?

Regards, Moshe

rhuanjl commented 2 months ago

It shouldn't crash; I'm afraid I've never used the Visual Studio debugger, @fatcerberus do you have any experience/thoughts on this?

mosheDO commented 2 months ago

Hi After investigating it seems that the reason is because in the properties the debug is defined as script and not native. Changing that will fix it.

Just out of curiosity what debugger do you use?

rhuanjl commented 2 months ago

I primarily develop in VSCode on a mac; I debug with GDB via the CPP add on.

ShortDevelopment commented 1 month ago

@mosheDO Did you get it to work?

mosheDO commented 1 month ago

Yes, sorry for not closing

ShortDevelopment commented 1 month ago

No problem! Good to know you could solve your issue 😊

mosheDO commented 1 month ago

@ShortDevelopment

Just out of curiosity is there any planning to add some new JS features such as BigInt for example?