如何在 VS Code 中调试我的 typegraphql 解析器?
How can I debug my typegraphql resolvers in VS Code?
所以我得到了我的 typeorm、typegraphql、apollo-server-express、typescript 端点和 运行 解析器、突变和所有这些东西。
我有 c# 背景,有时我想在向 playground 发出请求以弄清楚我做错了什么时调试我的端点。我还没有找到 vscode 允许我这样做的设置,而且 google 也没什么帮助。
这可能是我想要实现的目标吗?谢谢
我使用以下 launch.json 制作的,也许这对其他人有帮助
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"args": ["src/index.ts", "--transpile-only", "hello"],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": ["<node_internals>/**", "node_modules/**"]
}
]
}
所以我得到了我的 typeorm、typegraphql、apollo-server-express、typescript 端点和 运行 解析器、突变和所有这些东西。
我有 c# 背景,有时我想在向 playground 发出请求以弄清楚我做错了什么时调试我的端点。我还没有找到 vscode 允许我这样做的设置,而且 google 也没什么帮助。
这可能是我想要实现的目标吗?谢谢
我使用以下 launch.json 制作的,也许这对其他人有帮助
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"args": ["src/index.ts", "--transpile-only", "hello"],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart",
"skipFiles": ["<node_internals>/**", "node_modules/**"]
}
]
}