gpt4 book ai didi

javascript - 使用 Chutzpah 时 Typescript 断点失败

转载 作者:行者123 更新时间:2023-12-03 09:46:44 26 4
gpt4 key购买 nike

Github 上关于 Compile 配置元素的 Chutzpah 文档。

This setting lets you describe in the Chutzpah.json file how to execute a command which can compile your source files to .js files. You tell Chutzpah what to execute and some information about what your executable does (like where to find the generated .js files). Then after running the executable Chutzpah can associate each source file with each output file to still give the nice behavior of mapping tests back to their original files.

我将此解释为 js.map 文件已正确使用,因此原始 TS 源中的断点应该可以工作。

其他一切都工作正常。

当我在 Typescript 单元测试中放置断点时,它在 Test->Debug->All Tests 时无法中断。

右键单击并选择 Chutzpah 菜单项在浏览器中打开时也无法中断

最佳答案

Chutzpah 版本 4.1.0 添加了集成 VS debugging 。您可以在 JS 文件中设置断点(如果生成了源映射,则也可以在 TypeScript 中设置断点)并使用上下文菜单中的 Visual Studio 调试器启动:

enter image description here

关于javascript - 使用 Chutzpah 时 Typescript 断点失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31003415/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com