小编Tua*_*nDT的帖子

将visual studio调试器附加到电子应用程序

我正试图从头开始从Visual Studio 2017(而不是vscode)调试电子应用程序.

我创建了一个控制台nodejs项目,安装并保存电子.项目结构: 在此输入图像描述

内容app.js(取自电子网站):

'use strict';

const { app, BrowserWindow } = require('electron')
const path = require('path')
const url = require('url')

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win

function createWindow() {
    // Create the browser window.
    win = new BrowserWindow({ width: 800, height: 600 })

    // and load the index.html of the app.
    win.loadURL(url.format({
        pathname: path.join(__dirname, …
Run Code Online (Sandbox Code Playgroud)

remote-debugging visual-studio node.js attach-to-process electron

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

序言分离

考虑这个 Prolog 谓词:

silly:-
    1 = 1.
silly:-
    1 = 2.
Run Code Online (Sandbox Code Playgroud)

查询时,输出答案有两种状态:真和假。无论如何,只要 Prolog 在析取中遇到真语句就要求它终止吗?

prolog

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