dongtan2603 2017-03-24 11:57
浏览 318

如何使用文件API localhost从调试外部链接打开IntelliJ,PhpStorm:63342 / api / file / FILENAME:LINE

I'm improving a PHP function to debug by printing var contents stack trace, and other useful informations to help debugging. For every file:line, I put a URL to open it directly in PhpStorm, using it's file API:

http://localhost:63342/api/file/FILENAME:LINE

it's very useful because I don't have to hit <kbd>Ctrl + P</kbd> (same shortcuts as Sublime Text) to find file and then <kbd>Ctrl + G</kbd> to go to that line. I just click in the stacktrace link and my PhpStorm open the file right on the line.

It's so useful, that I added links in my Firefox bookmarks. The problem is: when you modify files, line numbers change.

My first question is: how to make PhpStorm open right on a method instead a line number

Second question: how to make it work in Mac OS (for me, it runs OK on Windows but not in Mac OS).

PhpStorm version in Windows: 2016.3.2
PhpStorm version in Mac OS: 2016.? (not sure, my macbook is in my home right now)

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算