我有一个在Visual Studio (C++)中的项目。该项目的前端使用JavaScript编写,是一个在chtmlview窗口中运行的简单GUI,用于控制在C++中运行的代码。
当在Visual Studio中以调试模式运行该项目时,出现以下情况:
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc524..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6d0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc444..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6b0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc434..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6a0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc3ec..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6c0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc524..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6d0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc444..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6b0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc434..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6a0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc3ec..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6c0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc524..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6d0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc444..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6b0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc434..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6a0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc3ec..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6c0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc524..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6d0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc444..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6b0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc434..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6a0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc3ec..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6c0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc524..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6d0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc444..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6b0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc434..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6a0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc3ec..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6c0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc524..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6d0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc444..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6b0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc434..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6a0..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc3ec..
First-chance exception at 0x75a0812f in MyProject.exe: Microsoft C++ exception: Js::JavascriptExceptionObject at memory location 0x001fc6c0..
实际上,控制台输出了很多页面。我发现很难找到调试代码的方法。它必须在chtmlview窗口中运行,(而不是像Chrome这样漂亮的调试工具...“是的,微软...你让我失望了),这使得它更加困难。我在项目中使用最新版本的jQuery,除此之外,我只使用了少量的Try/Catches。
有没有遇到过需要调试在chtmlview中运行的javaScript的人指点一下就好了。
其他症状包括窗口在过夜后运行非常缓慢。
(注意:在这个项目中,我基本上是脚本猴子,在C++方面几乎没有任何贡献,但最近重新编写了所有的javaScript;所以你可以看到这些异常是让我很尴尬的!)。