Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
f00269cd
Commit
f00269cd
authored
Jun 11, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging
parent
c7901f1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
debugfs.php
src/debugfs-webgui/debugfs.php
+12
-1
No files found.
src/debugfs-webgui/debugfs.php
View file @
f00269cd
...
...
@@ -238,6 +238,13 @@ function filter_record_by_file($a,$f){
// default CT is text/html - LibreJS can add extra tags: <html><head></head><body>response</body></html>
header
(
"Content-Type: text/plain"
);
if
(
$cmd
==
"debug"
){
$arr
=
get_control
(
$file
);
echo
"<!--"
;
print_r
(
$arr
);
echo
"-->"
;
exit
(
0
);
}
if
(
$cmd
==
"do_nothing"
){
...
...
@@ -309,7 +316,11 @@ if ($cmd=="restore"){
if
(
$cmd
==
"reread"
){
$file
=
$_GET
[
'file'
];
$arr
=
get_control
(
$DEBUGFSFILE
);
if
(
!
$file
)
{
$filtered
=
$arr
;
}
else
{
$filtered
=
filter_record_by_file
(
$arr
,
$file
);
}
echo
json_encode
(
$filtered
);
//echo "<pre>";print_r($filtered);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment