配置 VScode调试php的环境

如何在VScode中搭建php开发环境 ② (没有 php.ini 文件)这里我们可以在 php 根目录下找到 php.ini-development (开发环境用)与 php.ini-production(生产环境用)两个文件。​下载的 php_xdebug-3.2.0RC1-8.1-vs16-x86_64.dll 文件,复制到 php 根目录下的 ext 目录中,然后在 php 根目录下找到 php.ini 文件,有如下两种情况。(下载的版本是与PHP版本相同)【安装下载时,版本为PHP8.2】【如果不知道PHP版本,文末告诉你如何查看】 阅读详情

配置 VScode调试php的环境

vscode现在变得非常流行,轻量级、插件超级丰富、可编写各类代码,老少通杀。

言归正传,今天主要记录下配置调试PHP的环境

软件:phpstudy+vscode+chrome

三款软件安装,直接点击 下一步 下一步即可。

1. phpstudy的配置

  • 菜单栏“环境”,可以下载各类PHP版本,如图所示

在这里插入图片描述

  • 通过“设置”按钮开启扩展组件,本文主要开启xdebug,为了调试
    在这里插入图片描述
  • 菜单栏“网站”,可以选择设置php的版本
    在这里插入图片描述
    通过php.ini配置文件修改xdebug.remote_enable为on,添加xdebug.remote_autostart=on
    在这里插入图片描述

2. 配置vscode

  • 安装PHP所需插件
    在这里插入图片描述
    通过settings来设置php的路径
    在这里插入图片描述
    按F5,选择php,配置launch.json
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 9001
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9001
        }
    ]
}

这样就搞定了。
vscode 按F5开启调试,chrome直接访问http://localhost/index.php,这样就可以调试了,收工。
在这里插入图片描述

VSCode配置PHP开发环境和插件PHP server,PHP Debug调试的配置使用,全 目录 PHP 下载安装php 修改php.ini扩展文件 php.ini设置默认的时区: 设置 ssl : php路径和ext添加到环境变量 VSCode 下载安装VSCode 插件PHP Debug 插件PHP Intelephense,php代码提示器 插件PHP server 运行调试 运行项目 debug调试 php_xdebug插件下载 PHP关于VC11,VC9,VC6,TSNTS的含义 debug PHP 本文涉及文件/环境 vscode(编辑器.. 阅读详情

相关推荐

DISM错误87详解:RestoreHealth选项无法识别的修复方法

DISM(部署映像服务和管理工具)是Windows系统维护与修复的核心命令行工具,常与SFC(系统文件检查器)配合使用,用于扫描和修复组件存储损坏、系统文件缺失等问题。在执行系统健康检查时,用户常会遭遇错误87,提示“未在此上下文中识别出restorehealth选项”。该错误的本质并非工具损坏,而是命令参数结构不符合DISM的语法解析规则,或当前系统环境(如Windows 7、WinRE/PE、32位环境)不支持该参数。理解DISM的命令层级、参数挂载关系以及运行上下文,是精准排除故障的前提。通过核对标准

weixin_34116482的博客 562

如何在visual studio code上运行php文件, 及launch.json中简单变量参数含义,

如何在visual studio code运行php项目 在visual studio code中倒入php项目后,如果想点击运行按钮后,让.php文件 .html文件 .js文件 等文件能在chrome浏览器中运行,需要两个步骤 1.下载debugger for chrome插件 然后配置一下launch.json 文件,让vscode知道怎么运行。 下面是launch.json 文件内容,可以...

weixin_41315600的博客 3952

离线语音识别模块LD3320实战:如何低成本给STM32设备加上‘耳朵’和‘嘴巴’?

本文详细介绍了如何为STM32设备集成LD3320离线语音识别模块,实现低成本语音交互方案。从硬件连接到STM32底层驱动实现,再到指令训练与词条优化技巧,完整解析了唤醒词检测与自定义指令识别的全过程。LD3320作为非特定人声识别芯片,无需网络连接,适用于智能家居、工业控制等场景,是嵌入式开发者的理想选择。

weixin_30906185的博客 560

Visual Studio Code 使用Chrome Debug 代码

一、添加插件 Debugger for Chrome,点击安装,安装完成之后,启动 二、配置启动参数 1.按 F5,出现界面如图,选择 Chrome 2.然后会打开配置文件 launch.json 3.第三步需要配置本地HTTP服务器(IIS) ①HTTP服务器配置教程 ②配置完成之后,把服务器相关配置改成如下图: 4.再按F5启动,就可以启动Chr...

weixin_30500663的博客 598

SiamFC++笔记

SiamFC++: Towards Robust and Accurate Visual Tracking with Target Estimation Guidelines 文章根据这些思路:引入分类和目标状态估计分支(G1),无歧义的分类得分(G2),无先验知识的跟踪(G3)和评估质量得分(G4)来设计SiamFC ++。 SiamRPN ++和SiamFC ++的比较(红色部分代表得分高的区域): guide: G1 : 分类和状态估计任务的分离:分类任务将目标从干扰物和背景中分类出来,目标状态

木木JL的博客 9452

实战|验证码突破思路

漏洞成因:由于逻辑设计缺陷,可绕过验证,比如直接删除COOKIE或验证码参数可绕过、当验证不通过清空session时,验证码参数值为空时绕过等。测试方法:抓包,删除验证码字段,查看是否可以成功发送抓包,正常流程下,记录验证码后的数据包,替换目标包中内容,直接发送,查看是否可以直接绕过验证码案例:Step1.输入正确账户信息和错误验证码,登录时抓包Step2.删除COOKIEStep3.客户端登陆成功。

weixin_46239998的博客 8120

在vscode中进行php开发方法详解

在vscode中使用php进行开发的方法。主要应用于web初学者在刚开始使用制作动态网页的解决方法。针对于大学web课程中动态网页开发相关功能的实现。

2301_79503048的博客 561

verilog扰码器设计及仿真

本设计使用verilog语言实现扰码器设计与仿真 本工程在quartusII下实现并在modelsim下进行仿真 设计中包括加扰器和解扰器模块、仿真测试模块等. 下面是工程截图: 下面是modelsim仿真截图: 仿真代码部分可以自己设计更改,输出也会不同。 ...

QQ_778132974的博客 1734

在vscode配置PHP环境及运行

我们只要选择其中一个,把它备份,然后重命名为php.ini,这里建议将 php.ini-development 文件复制备份一份出来将其命名为 php.ini 就行。把下载的 php_xdebug-3.2.2-8.2-vs16-x86_64.dll 文件,复制到 php 根目录下的 ext 目录中,然后在 php 根目录下找到 php.ini 文件,这里可能会出现如下两种情况。复制你安装PHP的具体地址,在搜索中输入系统环境,开始编辑系统环境变量,点击环境变量,选择下面的系统环境,找到Path。

m0_74087268的博客 1万+

JS逆向-Protobuf逆向解析

目录一、什么是Protobuf二、Protobuf环境配置三、Protobuf实例序列化与反序列化四、逆向解析 Protobuf案例1、python序列化2、python反序列化 一、什么是Protobuf 1、protocol buffers介绍:是一种语言无关、平台无关、可扩展的序列化结构数据的方法。严格说不算是加密,只能是叫序列化结构数据,让可读变为疑似的乱码,那反序列化即让疑似的乱码变为可读 2、protobuf使用流程的前提是有一个.proto文件,对逆向而言就是还原.proto文件,选择

十一姐的博客 1万+

web渗透学习手册

依据多年的渗透测试项目经验及个人理解,对漏洞分类

渗透之路,攻防之间皆学问 1万+

在 VSCode 中配置 PHP 开发环境

在 VSCode 中配置 PHP 开发环境,So easy。

工作、学习 9万+

【unity实战】随机地下城生成3——设置人物移动脚本、动画的切换和摄像机的跟随(含源码)

给房间添加触发器碰撞体,用来判断角色是否进入房间切割人物图片,注意人物每个图片高度可能不同,所有我们需要把轴心调整到人物的底部把人物跑步图片的高度,统一调成20,下面镂空,达到跳跃的效果快速创造人物动画,以人物idle为例,我们选中所有的idle人物图片,拖拽至窗口,unity就会自动生成,并提示保存动画位置别忘记设置人物排序图层,运行人物就动起来了新增run动画设置人物碰撞体设置刚体将重力设置为0,持续人物移动和动画切换的代码设置摄像机跟随单例代码在room中调用。

向宇的博客,专注php/web全栈 unity游戏开发,欢迎大家评论纠错 1059

Visual Studio Code | VSCode 环境配置 —— VSCode 配置 PHP 调试环境 — PHP Debug

0x01:PHP Debug 代码调试插件 — 插件简介🌟0x01:PHP Debug 代码调试插件 — 插件简介该工具基于 Xdebug 开发,允许开发者在 VSCode 中对 PHP 代码进行单步调试、查看变量值等,极大的提升了 PHP 的开发效率。0x02:PHP Debug 代码调试插件 — 安装流程0x0201:PHP Debug 插件安装PHP Debug0x0202:PhpStudy 开启 Xdebug 组件。

Blue17 の 小窝 1729

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

mac玩转 vscode PHP,MAC下Visual Studio Code配置PHP调试环境

1、下载安装Visual Studio Code官网地址:https://code.visualstudio.com/点击下载链接进行下载及安装。ps:Visual Studio Code摆脱了vs系列开发工具臃肿的特点,算是一款轻量级跨平台的良心作品。2、下载安装XAMPPXAMPP是一个功能强大的建站集成软件包,安装后即直接集成了Apache+MySQL+PHP+PERL等环境。官网地址:ht...

weixin_39970689的博客 1832

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

【免费下载】 Vscode配置PHP调试环境教程:轻松搭建PHP开发环境

在众多编程语言中,PHP依然占据着举足轻重的地位。Visual Studio Code(简称VSCode)作为一款强大的跨平台代码编辑器,支持多种编程语言的开发。本文将为您详细介绍如何在VSCode中配置PHP的运行和调试环境,助您高效开发PHP项目。 ## 项目介绍 Vscode配置PHP调试环境教程,旨在帮助开发者快速搭建PHP开发环境,实现命令行运行PHP脚本、调试PHP脚本以及使用We...

gitblog_06756的博客 1032

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

VScode---php环境搭建

右上角文件—> 首选项-----> 设置------>php。php -v时,出现报错。

woshicainiao666的博客 6315

【VScode环境配置】在VScode中配置php环境(wamp版)

(集成环境)

qq_47493625的博客 2366

PHPstudy+Vscode配置php开发环境

这里写自定义目录标题前期准备PHPstudy搭建注意点.1注意点.2注意点.3Vscode搭建注意点.1注意点.2搭建结果如图示Hexo+Github搭建个人博客 这两天一直在用PHPstudy+Vscode配置php开发环境,膜拜过许许多多网上师傅的博客,发现方式多样,但是版本不一致,导致了配置存在问题,利用我课间20分钟时间,就这今天我遇见的问题,以及搭建过程进行简要概括!希望对大家有帮助! 前期准备 首先到官网上自行下载PHPstudy和Vscode,我之所以用PHPstudy+Vscode配置,因为

BvxiE的博客 5948

如何在VScode上运行php代码(windows)

4.更换计算机字符集编码(本人使用该方法运行php时需要计算机使用utf-8编码,否则会出现乱码)第三幅图的文件位置为刚刚所下的php编译器中php.exe所在的文件目录。配置完后在cmd中运行php -v,如果有成功显示php版本则配置完成。这样就可以在VScode上(终端)运行php代码了。下载php编译器(一般下载zip解压下来就好)1.在VScode上下载以下两个插件。做完以上设置记得重启电脑!2.下载php编译器。

2301_81813216的博客 1410

用vscode运行php的图文详解

教程下载地址: 网赚博客https://www.piaodoo.com/创业项目排行榜前十名https://www.piaodoo.com/

菜鸟教程 2308

VSCode配置php调试环境

在开发php项目的时候经常会用到调试,如果没有合适的工具,调试起来很复杂,PHP Debug扩展支持断点调试,非常方便。下面是个人使用中的调试步骤,请参考。

lk123456sc的专栏 3501

使用 VSCode+Apache+PHP 快速搭建PHP开发环境(PHP开发环境搭建)

手把手教你搭建 PHP 开发环境,一看就会,教程完美。使用到的工具(VSCode+Apache+PHP)

从不熬夜写代码的博客 3184

vsc php配置,VSCode配置PHP调试环境[Windows]

没有灵感,连续水一波 (逃其实是我刚配好,比较健忘,以后重新配置的时候方便环境准备XAMPP&XDebug下载 XAMPP 并安装记好安装路径,后面会用到打开 XAMPP 开启 Apache,获取 PHP info,进入 PHP info 页面后直接全选复制,全部复制到 XDebug 检测网址 中的输入框中,点击后网站会分析出你当前的 php 环境最适合的 xdebug 版本,并给出下载链...

weixin_39740419的博客 704

visual studio code 怎么配置php服务器

2. 确保你的 PHP 项目文件放在 PHPStudy 的网站根目录下(通常是 `phpstudy_pro/WWW/` 或 `phpstudy/WWW/`)。3. 在 `Open In Browser: Default` 中设置你喜欢的浏览器(例如 `chrome`、`firefox`)。- 如果配置正确,浏览器会打开 `http://localhost/你的项目文件夹/index.php`。3. 如果配置正确,浏览器会打开 `http://localhost/你的项目文件夹/文件名.php`。

I‘m程序媛的博客 820

VSCode配置PHP环境教程:零基础也能轻松运行PHP项目

作为计算机小白,想用VSCode运行PHP项目却不知从何下手?别担心!这篇教程将用最通俗易懂的方式,手把手教你完成PHP环境配置和项目运行。无需任何编程基础,跟着做就能成功!

桃之夭夭的博客 3563
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值