FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-inspector/index.js at master · f0-boss/node-inspector · GitHub
f0-boss
/
node-inspector
Public
forked from
node-inspector/node-inspector
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-inspector
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (19 loc) · 673 Bytes
Breadcrumbs
node-inspector
/
index.js
Copy path
File metadata and controls
22 lines (19 loc) · 673 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Public API for node-inspector embedders
var
url
=
require
(
'url'
)
;
exports
.
buildInspectorUrl
=
buildInspectorUrl
;
/**
* Build a URL for loading inspector UI in the browser.
*
@param
{
string|undefined
} inspectorHost as configured via --web-host
*
@param
{
number
} inspectorPort as configured via --web-port
*
@param
{
number
} debugPort as configured via --debug in the debugged app
*/
function
buildInspectorUrl
(
inspectorHost
,
inspectorPort
,
debugPort
,
fileToShow
)
{
var
parts
=
{
protocol
:
'http'
,
hostname
:
inspectorHost
||
'127.0.0.1'
,
port
:
inspectorPort
,
pathname
:
'/debug'
,
search
:
'?port='
+
debugPort
}
;
return
url
.
format
(
parts
)
;
}
Back
|
FazBrowse Home
|
New Git URL