小编viv*_*kar的帖子

无法使用可视代码调试 Next.js 应用程序

我正在学习 Next.js,并且想在可视化代码和 chrome 中进行调试。我尝试了 launch.json 的不同组合来在可视代码中调试 next.js 应用程序。我从堆栈溢出本身获取了代码之一。但这又是一次失败。您能帮助我如何使用 google chrome 在 Visual Studio 代码中的 Next.js 应用程序中进行调试吗?

下面是我的 launch.json 文件代码:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Example",
      "runtimeExecutable": "node",
      "runtimeArgs": ["--inspect", "node_modules/.bin/next", "dev"],
      "port": 9229,
      "cwd": "${workspaceFolder}/frontend",
      "sourceMapPathOverrides": {
        "webpack:///./*": "${workspaceRoot}/frontend/*"
      }
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

我的 .next.config.js 的代码

module.exports = {
  webpack(config) {
    config.devtool = 'cheap-module-eval-source-map'
    return config
  },
}
Run Code Online (Sandbox Code Playgroud)

我的前端 package.json

{
  "name": "frontend",
  "version": "1.0.0",
  "description": "Social networking app",
  "proxy": "http://127.0.0.1:8080",
  "main": "index.js",
  "scripts": …
Run Code Online (Sandbox Code Playgroud)

debugging reactjs visual-studio-code next.js vscode-debugger

7
推荐指数
1
解决办法
1万
查看次数

在excel vba中为特定范围设置自定义数字格式时键入不匹配错误

将自定义数字格式设置为工作表中的特定范围时出错。我尝试了很多组合,但无法找到确切的解决方案..我的代码是:

ws1.Range("C2: C" & p).NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* " - "??_);_(@_)" 'Number format accounting
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题?以及在设置自定义编号时需要注意哪些预防措施?格式?

excel vba

1
推荐指数
1
解决办法
1543
查看次数