Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xdebug
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chef Cookbooks
xdebug
Commits
51e7f726
Commit
51e7f726
authored
4 years ago
by
Stefan Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Change profiler output in order to work with webgind
parent
77775d0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
attributes/default.rb
+2
-1
2 additions, 1 deletion
attributes/default.rb
templates/default/xdebug.ini.erb
+6
-5
6 additions, 5 deletions
templates/default/xdebug.ini.erb
with
8 additions
and
6 deletions
attributes/default.rb
+
2
−
1
View file @
51e7f726
...
...
@@ -5,5 +5,6 @@ default['xdebug']['directives'] = {
:max_nesting_level
=>
1500
,
:mode
=>
'debug'
,
:remote_handler
=>
'dbgp'
,
:start_with_request
=>
'default'
:start_with_request
=>
'default'
,
:profiler_output_name
=>
'cachegrind.out.%p.webgrind'
}
This diff is collapsed.
Click to expand it.
templates/default/xdebug.ini.erb
+
6
−
5
View file @
51e7f726
...
...
@@ -4,6 +4,11 @@
;zend_extension =
<%=
Mixlib
::
ShellOut
.
new
(
"php -i | grep extension_dir | awk 'NR==1 {print $(NF)}'"
).
run_command
.
stdout
.
strip
%>
/xdebug.so
zend_extension=xdebug.so
; to activate the profiler: Change the variable "xdebug.mode" to "profile" instead of "debug" and use "xdebug.start_with_request" with "trigger"
<%
node
[
'xdebug'
][
'directives'
].
sort_by
{
|
key
,
val
|
key
}.
each
do
|
directive
,
value
|
-%>
<%=
"xdebug.
#{
directive
}
=
#{
value
}
"
%>
<%
end
-%>
; -----------------------------------------------------------------------------
; xdebug.auto_trace
;
...
...
@@ -1019,8 +1024,4 @@ zend_extension=xdebug.so
;
send
to
the
client
through
the
Remote
Debugging
feature.
;
;
;
xdebug.var_display_max_depth =
3
<%
node
[
'xdebug'
][
'directives'
].
sort_by
{
|
key
,
val
|
key
}.
each
do
|
directive
,
value
|
-%>
<%=
"xdebug.
#{
directive
}
=
#{
value
}
"
%>
<%
end
-%>
;
xdebug.var_display_max_depth =
3
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment