Giter VIP home page Giter VIP logo

Comments (12)

ycvcb123 avatar ycvcb123 commented on May 28, 2024

@hubcarl 大神方便解答下吗?

from easywebpack.

hubcarl avatar hubcarl commented on May 28, 2024

@ycvcb123 你什么系统? 我明天试试

from easywebpack.

hubcarl avatar hubcarl commented on May 28, 2024

@ycvcb123 你什么系统? 我明天试试

from easywebpack.

ycvcb123 avatar ycvcb123 commented on May 28, 2024

@hubcarl easywebpack-cli 选下面的配置,新建的项目,npm run debug就会出现上面在编译中的情况

image

from easywebpack.

hubcarl avatar hubcarl commented on May 28, 2024

@ycvcb123 是vscode直接调试还是chrome方式调试,chrome方式试了下,没有问题,vscode得再试试

from easywebpack.

funkyLover avatar funkyLover commented on May 28, 2024

@hubcarl 我这边也有一样的问题

不知道你说的chrome的调试方式没问题是指用chrome就能正常调试吗?

但是用debug模式运行时,请求页面卡在了这个页面上

屏幕快照 2020-01-14 17 16 32

请求感觉还没有到egg的进程,怎么调试?

from easywebpack.

ycvcb123 avatar ycvcb123 commented on May 28, 2024

@hubcarl vscode直接调试就会卡住

from easywebpack.

funkyLover avatar funkyLover commented on May 28, 2024

感觉像是前端资源的构建卡住了

from easywebpack.

hubcarl avatar hubcarl commented on May 28, 2024

chrome 可以调试 devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9999/ws_proxy

from easywebpack.

hubcarl avatar hubcarl commented on May 28, 2024

@ycvcb123 断点打在哪里? controller 里面?

from easywebpack.

hubcarl avatar hubcarl commented on May 28, 2024

easy-team/egg-vue-typescript-boilerplate#14

from easywebpack.

funkyLover avatar funkyLover commented on May 28, 2024

chrome 可以调试 devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9999/ws_proxy

@hubcarl 详细情况是这样的

  1. npm run debug, 没有报错能运行
  2. 打开 chrome://inspect 也能看到对应的debugger进程(见下图1)

问题是

  1. 进到chrome的devtools,在source下并看不到任何业务代码文件,使用 command + p 也搜索不到任何业务代码文件,只能看到node_modules的文件(见下图2) 现在使用 devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9999/ws_proxy 能正常在devtools中定位到业务代码了
  2. 前端页面卡住了,卡在那个 webpack 正在努力编译中... 的页面,我想调试 egg 服务,那前端的请求都写好了,我就是想打开前端页面由前端发送请求出去,但现在 npm run debug 时,前端页面根本打不开(下见图3),难道只能启动debug然后用postman一类的工具构造请求吗。

图1

屏幕快照 2020-01-16 10 12 19

图2

屏幕快照 2020-01-16 10 11 16

图3

72343288-737c9800-3709-11ea-9878-62cc1c60fe83

from easywebpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.