小编Maq*_*sud的帖子

无法检查 VS Code 中的 C++ STL 内容

问题陈述:

调试器无法提供 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)

我什至尝试在手表窗口中添加表情。但这对我来说也不起作用。或者也许我错过了一些东西。这个线程

无法调试stl

c++ gdb visual-studio-code vscode-debugger

8
推荐指数
1
解决办法
6181
查看次数

PHPExcel 错误:不推荐使用带花括号的数组和字符串偏移访问语法

我刚刚更新了我phpexcelphpspreadsheet,我注意到这个错误弹出:

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)

php phpexcel laravel

4
推荐指数
1
解决办法
2万
查看次数

由于 PHP 版本,Apache 中的 PHPMyAdmin 500 内部服务器错误

版本:

  • 操作系统lsb_release -a:Ubuntu 18.04.5 LTS
  • PHP php -v: 8.0.1
  • 阿帕奇apache2 -v:2.4.29 (Ubuntu)
  • MySQL 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)

php mysql apache ubuntu phpmyadmin

3
推荐指数
1
解决办法
1918
查看次数