在VS Code中调试JXA

问题描述

我正在尝试在vs代码中调试一些JXA代码。我正在使用@jxa/runts-node

import "@jxa/global-type";
import { run as runJXA } from "@jxa/run";

async function run() {

    console.log('I can put a breakpoint here!  :)   ');

    return await runJXA((config) => {

          console.log('I can't put a breakpoint here :(  ');
    });

}

run()

我通过launch.json配置运行VS Code调试器:

    {
        "type": "node","request": "launch","name": "Debug JXA Build","runtimeArgs": [
            "-r","ts-node/register"
        ],"args": [
            "bootstrap.ts"
        ]
    },

如何获得第二个断点?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)