调试器无法提供 STL 容器的内容(即向量或字符串)。
下面是我的launch.json,我已-enable-pretty-printing按照此线程添加,但我无法看到 STL 容器的内容。
{
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true,
}
],
"preLaunchTask": "C/C++: g++.exe build active file"
}
]
}
Run Code Online (Sandbox Code Playgroud)
我什至尝试在手表窗口中添加表情。但这对我来说也不起作用。或者也许我错过了一些东西。这个线程
我刚刚更新了我phpexcel的phpspreadsheet,我注意到这个错误弹出:
ErrorException (E_DEPRECATED) 不推荐使用带花括号的数组和字符串偏移访问语法
需要“类/PHPExcel.php”;
这是我的代码的一部分,它触发了上述错误:
文件: project/public/Classes/PHPExcel/Shared/ZipStreamWrapper.php
public function stream_open($path, $mode, $options, &$opened_path)
{
// Check for mode
if ($mode{0} != 'r') { //Error Line
throw new PHPExcel_Reader_Exception('Mode ' . $mode . ' is not supported. Only read mode is supported.');
}
Run Code Online (Sandbox Code Playgroud)
文件: project/public/Classes/PHPExcel.php
/** PHPExcel root directory */
if (!defined('PHPEXCEL_ROOT')) {
define('PHPEXCEL_ROOT', dirname(__FILE__) . '/');
require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); //Error Line
}
Run Code Online (Sandbox Code Playgroud)
文件: app/Http/Controllers/analyticsAuth/statement.old.php
use PHPExcel_Reader_Excel2007;
use PHPExcel;
use PHPExcel_IOFactory;
use ZipArchive;
require 'Classes/PHPExcel.php'; //Error …Run Code Online (Sandbox Code Playgroud) 版本:
lsb_release -a:Ubuntu 18.04.5 LTSphp -v: 8.0.1apache2 -v:2.4.29 (Ubuntu)mysql --version: mysql Ver 14.14 Distrib 5.7.32问题:
我正在尝试使用以下文章安装 LAMP Stack 。但是,我在从浏览器HTTP 500 Error访问时phpmyadmin得到了。
并使用以下命令安装 phpmyadmin。
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl试过:
因此,我检查了错误日志tail -f /var/log/apache2/error.log,发现 Phpmyadmin 运行在折旧版本的 PHP 上。
[Sat Jan 30 12:56:38.798871 2021] [php:error] [pid 17271] [client
103.25.169.179:28514] PHP Fatal error: Array and string offset access
syntax with …Run Code Online (Sandbox Code Playgroud)