我正在尝试使用VScode设置Xdebug,但是每当设置断点时,它都会忽略它。
我安装了https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug并按照说明进行操作(Windows),我还使用了Xdebug向导,这是我的配置:
VSCode-launch.json
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
Run Code Online (Sandbox Code Playgroud)
php.ini
zend_extension = D:\wamp\bin\php\php7.1.16\ext\php_xdebug-2.6.1-7.1-vc14.dll
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_log=D:\wamp\logs\xdebug.log
Run Code Online (Sandbox Code Playgroud)
注意:我找不到任何日志,我可能没有设置正确性,但是我也不知道如何使其正常工作
的PHP -V
$ php -v
PHP 7.1.16 (cli) (built: Mar 28 2018 21:27:36) ( ZTS MSVC14 (Visual C++ 2015) x8
6 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, …Run Code Online (Sandbox Code Playgroud) 如何lighten( );在VueJS中使用SASS颜色功能?下面的确切代码:
<style lang="scss">
@import "../assets/variables";
.disable-primary {
lighten( $primary, 10% );
}
</style>
Run Code Online (Sandbox Code Playgroud)
但我在VS代码中遇到编译错误:
Failed to compile.
./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-
loader/lib/style-compiler?{"vue":true,"id":"data-v-
8dc7cce2","scoped":false,"hasInlineConfig":false}!./node_modules/sass-
loader/lib/loader.js?{"sourceMap":true}!./node_modules/vue-
loader/lib/selector.js?type=styles&index=1!./src/components/Home.vue
Module build failed:
lighten( $color-primary, 10% );
^
Property "lighten" must be followed by a ':'
Run Code Online (Sandbox Code Playgroud) 我在VsCode中创建了很多自定义JavaScript代码段。最近,我开始在打字稿中处理项目,而且并不奇怪,JavaScript代码段在打字稿文件中不起作用。
有没有一种方法可以创建我可以在JavaScript和打字稿中使用的“共享”片段?(除了每次创建自定义代码段时复制代码段定义文件)
javascript code-snippets typescript visual-studio-code vscode-extensions
我试图从工作区中运行一个.cpp文件,但是给了我关于不添加c ++ 11 / higher标志的错误,但是我将它们添加到task.json中
错误
[Running] cd "c:\Users\Nuhash\Desktop\test\" && g++ main.cpp -o main && "c:\Users\Nuhash\Desktop\test\"main
main.cpp:8:1: error: expected unqualified-id before 'using'
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
^
main.cpp:10:1: error: expected unqualified-id before 'using'
using ordered_set_rev = tree<T, null_type, greater<T>, rb_tree_tag, tree_order_statistics_node_update>;
^
main.cpp:12:1: error: expected unqualified-id before 'using'
using dijkstra = priority_queue<T, vector<T>, greater<T>>;
^
main.cpp:62:31: warning: variadic templates only available with -std=c++11 or -std=gnu++11
template <typename T, typename... Args>
^
main.cpp:63:52: warning: variadic templates only …Run Code Online (Sandbox Code Playgroud) 我有以下index.d.ts文件:
declare module 'mytypes' {
interface Constructor<T> {
new (...args: any[]): T;
}
//etc.
Run Code Online (Sandbox Code Playgroud)
VSCode突出显示了interface关键字:
Parsing error: Only declares and type imports are allowed inside declare module
1 | declare module 'someproject' {
> 2 | interface Constructor<T> {
| ^
3 | new (...args: any[]): T;
4 | }
5 |eslint
Run Code Online (Sandbox Code Playgroud)
看起来像是错误错误,但我无法从错误消息中分辨出
在过去的几年,我已经使用Solarized Dark,并VS Color Theme Editor在主题Visual Studio 201x和努力后材料的主题中Visual Studio Code,我想用这个精彩的主题Visual Studio 2019为好。然而,对于不兼容VS2017或VS2019的Material Theme不幸。我想知道是否有可能改变这个主题,即借助导出工具的帮助,如Extension Manager在Visual Studio 2019中使用您喜欢的扩展中所述。或者是有任何可用的主题类似Material Theme的Visual Studio 2017或2019?
themes visual-studio material-theme visual-studio-code visual-studio-2019
我已经做了
git pull <some_url>
Run Code Online (Sandbox Code Playgroud)
并且许多文件处于合并冲突状态。我如何使用vscode或本机git bash命令接受它们的更改,而又不逐文件删除HEAD文件?
我是VS代码和Golang的新手.
我有一个包含2个不同服务的现有项目 - 让我们调用一个A和第二个B.A
和B都位于同一目录下.
每当我尝试运行A或B时,我都会收到以下错误:
# directory/directory/directory/A&B_Directory
./A.go:12:6: main redeclared in this block
previous declaration at ./B.go:18:6
Run Code Online (Sandbox Code Playgroud)
我尝试使用该launch.json文件,添加以下部分:
{
"name": "Launch Program",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "FullDirectory/A.go"
}
Run Code Online (Sandbox Code Playgroud)
还尝试在program属性中设置为${file}失败的许多其他变体.
我喜欢某个方向,我有点失落.谢谢.
我并不是说它们在编辑器上使用的默认字体,而是网站本身图像中显示的字体。
例如以下示例:https : //i.imgur.com/71UX5tU.jpg https://code.visualstudio.com/images/1_14_js-refactoring.gif
它不是Consolas或Menlo,因为它如何呈现“ g”。我只是想在Windows上获得完全相同的外观,但找不到合适的搭配。
我尝试使用以下命令(如果我使用Visual Studio,它可以正常工作):
Scaffold-DbContext "Server=12.345.567.890;Database=ABC;Trusted_Connection=True;User Id=xyz;Password=12345;Integrated Security=false;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -f
Run Code Online (Sandbox Code Playgroud)
在使用Visual Studio代码终端尝试上述命令时,我收到此错误:
术语"Scaffold-DbContext"未被识别为cmdlet,函数,脚本文件或可操作程序的名称.检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试
javascript ×2
typescript ×2
asp.net-core ×1
c++ ×1
eslint ×1
git ×1
go ×1
node-sass ×1
php ×1
sass ×1
themes ×1
vscode-tasks ×1
vue.js ×1
vuejs2 ×1
xdebug ×1