idea远程调试

2023-10-29

目录

1、背景

2、代码

3、idea配置

4、服务端远程开启debug服务

5、远程调试

5.1 服务端

5.2 本地启动

6、注意



1、背景

线上出了问题,我们一般是通过日志来定位问题。在没有日志的情况下,往往定位问题是比较困难的。

这时我们希望线上可以和本地环境一样可以debug。可以用线上的环境,本地工具。幸运的是Java是有远程DEBUG的支持的,而且IDEA也实现了相关的功能。

2、代码

spring boot项目

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>remote.debug</artifactId>
    <version>1.0</version>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.7.RELEASE</version>
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
        <fastjson.version>1.2.24</fastjson.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>fastjson</artifactId>
            <version>${fastjson.version}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-logging -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-logging</artifactId>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>
import lombok.Builder;
import lombok.Data;

/**   
 * @Title: User.java 
 * @ProjectName com.spring.pro.test.controller
 * @Description:  
 * @author ybwei   
 * @date 2020年3月6日 下午6:18:36    
 */
@Data
@Builder
public class User {

	private Long id;
	private String name;
}
import javax.annotation.Resource;

/**
 * @Description: 
 * @Param:
 * @Return: 
 * @Author: ybwei
 * @Date: 2020/10/27
 **/
@RestController
@Slf4j
public class TestController {

	/**
	 * @Description:测试延迟加载
	 * @Author: ybwei
	 * @Date: 2020/7/31
	 **/
	@Resource
	private UserService userService;


	/**
	 * @Description: 
	 * @Param: []
	 * @Return: com.cloud.model.User
	 * @Author: ybwei
	 * @Date: 2020/7/31
	 **/
	@GetMapping("/getUser")
	public User getUser(Long id){
		return userService.getUser(id);
	}
}
import com.cloud.model.User;

/**
 * @ClassName UserService
 * @Description:
 * @Author ybwei
 * @Date 2020/7/31
 * @Version V1.0
 **/
public interface UserService {
    /**
     * @Description: 
     * @Param: [id]
     * @Return: com.cloud.model.User
     * @Author: ybwei
     * @Date: 2020/7/31
     **/
    User getUser(Long id);
}
import com.cloud.model.User;
import com.cloud.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName UserServiceImpl
 * @Description:
 * @Author ybwei
 * @Date 2020/7/31
 * @Version V1.0
 **/
@Slf4j
@Component
public class UserServiceImpl implements UserService {

    @Override
    public User getUser(Long id) {
        log.info("id:{}",id);
        return User.builder()
                .id(id)
                .name("张三"+id)
                .build();
    }
}

3、idea配置

点击主窗口菜单 Run / Edit Configurations,打开“Run/Debug Configurations”窗口

点击工具栏上的“+”按钮,下拉菜单中选择“Remote”

设置 Host 为远程服务器的域名或IP,保持 Port=5005 无需调整。如果Command line没有,一般默认会有值,复制命令行参数,形如 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005。

4、服务端远程开启debug服务

编写启动脚本start.sh

java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar remote.debug-1.0.jar

参数说明

  • -Xdebug:JVM在DEBUG模式下工作;

  • -Xrunjdwp:JVM使用(java debug wire protocol)来运行调试环境;

  • transport:监听Socket端口连接方式,常用的dt_socket表示使用socket连接.

  • server:=y表示当前是调试服务端,=n表示当前是调试客户端;

  • suspend:=n表示启动时不中断.

  • address:=5005表示本地监听5005端口。调试时防火墙要打开这个端口。

5、远程调试

5.1 服务端

执行start.sh

Listening for transport dt_socket at address: 5005
14:51:04,804 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
14:51:04,804 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
14:51:04,804 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/root/remote/remote.debug-1.0.jar!/BOOT-INF/classes!/logback.xml]
14:51:04,847 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@74294adb - URL [jar:file:/root/remote/remote.debug-1.0.jar!/BOOT-INF/classes!/logback.xml] is not of type file
14:51:04,952 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
14:51:04,954 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
14:51:04,976 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [stdout]
14:51:04,991 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
14:51:05,083 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:51:05,089 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [InfoFile]
14:51:05,121 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1890187342 - No compression will be used
14:51:05,123 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1890187342 - Will use the pattern d:/logs/info/info-%d{yyyy-MM-dd}.%i.log for the active file
14:51:05,127 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@130f889 - The date pattern is 'yyyy-MM-dd' from file name pattern 'd:/logs/info/info-%d{yyyy-MM-dd}.%i.log'.
14:51:05,127 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@130f889 - Roll-over at midnight.
14:51:05,131 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@130f889 - Setting initial period to Tue Oct 27 14:51:05 CST 2020
14:51:05,131 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@130f889 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
14:51:05,131 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@130f889 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
14:51:05,135 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[InfoFile] - This appender no longer admits a layout as a sub-component, set an encoder instead.
14:51:05,135 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[InfoFile] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
14:51:05,135 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[InfoFile] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
14:51:05,142 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[InfoFile] - Active log file name: d:/logs/info/info.log
14:51:05,142 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[InfoFile] - File property is set to [d:/logs/info/info.log]
14:51:05,144 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:51:05,144 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ErrorFile]
14:51:05,147 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@294184992 - No compression will be used
14:51:05,147 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@294184992 - Will use the pattern d:/logs/error/error-%d{yyyy-MM-dd}.%i.log for the active file
14:51:05,147 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2f490758 - The date pattern is 'yyyy-MM-dd' from file name pattern 'd:/logs/error/error-%d{yyyy-MM-dd}.%i.log'.
14:51:05,147 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2f490758 - Roll-over at midnight.
14:51:05,148 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2f490758 - Setting initial period to Tue Oct 27 14:51:05 CST 2020
14:51:05,148 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2f490758 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
14:51:05,148 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2f490758 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
14:51:05,148 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[ErrorFile] - This appender no longer admits a layout as a sub-component, set an encoder instead.
14:51:05,148 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[ErrorFile] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
14:51:05,148 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[ErrorFile] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
14:51:05,149 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ErrorFile] - Active log file name: d:/logs/error/error.log
14:51:05,149 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[ErrorFile] - File property is set to [d:/logs/error/error.log]
14:51:05,149 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
14:51:05,149 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [AllFile]
14:51:05,150 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@270397815 - No compression will be used
14:51:05,150 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@270397815 - Will use the pattern d:/logs/all/all-%d{yyyy-MM-dd}.%i.log for the active file
14:51:05,151 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@166fa74d - The date pattern is 'yyyy-MM-dd' from file name pattern 'd:/logs/all/all-%d{yyyy-MM-dd}.%i.log'.
14:51:05,151 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@166fa74d - Roll-over at midnight.
14:51:05,152 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@166fa74d - Setting initial period to Tue Oct 27 14:51:05 CST 2020
14:51:05,152 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@166fa74d - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
14:51:05,152 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@166fa74d - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
14:51:05,152 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[AllFile] - This appender no longer admits a layout as a sub-component, set an encoder instead.
14:51:05,152 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[AllFile] - To ensure compatibility, wrapping your layout in LayoutWrappingEncoder.
14:51:05,152 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[AllFile] - See also http://logback.qos.ch/codes.html#layoutInsteadOfEncoder for details
14:51:05,153 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[AllFile] - Active log file name: d:/logs/all/all.log
14:51:05,153 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[AllFile] - File property is set to [d:/logs/all/all.log]
14:51:05,153 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.mybatis] to TRACE
14:51:05,154 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.cloud.mapper] to DEBUG
14:51:05,154 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
14:51:05,154 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [stdout] to Logger[ROOT]
14:51:05,155 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [InfoFile] to Logger[ROOT]
14:51:05,155 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ErrorFile] to Logger[ROOT]
14:51:05,155 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [AllFile] to Logger[ROOT]
14:51:05,155 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
14:51:05,156 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@40f08448 - Registering current configuration as safe fallback point


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.7.RELEASE)

[INFO ] 2020-10-27 14:51:05.963 [main] com.cloud.ProviderApplication - Starting ProviderApplication v1.0 on iZbp12v151n660twhkl8xvZ with PID 1827 (/root/remote/remote.debug-1.0.jar started by root in /root/remote)
[INFO ] 2020-10-27 14:51:05.969 [main] com.cloud.ProviderApplication - No active profile set, falling back to default profiles: default
[INFO ] 2020-10-27 14:51:07.807 [main] o.s.b.w.e.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8080 (http)
[INFO ] 2020-10-27 14:51:07.834 [main] o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
[INFO ] 2020-10-27 14:51:07.856 [main] o.a.catalina.core.StandardService - Starting service [Tomcat]
[INFO ] 2020-10-27 14:51:07.864 [main] o.a.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.22]
[INFO ] 2020-10-27 14:51:07.980 [main] o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
[INFO ] 2020-10-27 14:51:07.980 [main] o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 1908 ms
[INFO ] 2020-10-27 14:51:08.258 [main] o.s.s.c.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
[INFO ] 2020-10-27 14:51:08.633 [main] o.a.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8080"]
[INFO ] 2020-10-27 14:51:08.658 [main] o.s.b.w.e.tomcat.TomcatWebServer - Tomcat started on port(s): 8080 (http) with context path ''
[INFO ] 2020-10-27 14:51:08.664 [main] com.cloud.ProviderApplication - Started ProviderApplication in 3.356 seconds (JVM running for 4.269)

5.2 本地启动

打断点

访问:http://IP:8080/getUser?id=2

IP:远程地址

就可以本地debug远程了。

6、注意

  • 远程部署和本地代码一致。
  • 服务端防火墙要打开address端口。服务器上多开放个端口是不安全的,调试完毕后可恢复防火墙设置。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

idea远程调试 的相关文章

随机推荐

  • shell脚本中$!、$@、$#、$$、$0、$1、$2、$*的含义

    一 shell脚本中 0 1 2 的含义 Shell最后运行的后台Process的PID 后台运行的最后一个进程的进程ID号 添加到shell当中参数的个数 Shell本身的PID ProcessID 即脚本运行的当前进程ID号 0 脚本本
  • 【第八章 线程的同步机制(同步代码块、同步方法)】

    第八章 线程的同步机制 同步代码块 同步方法 1 线程的同步机制方式一 同步代码块 java中通过同步机制解决线程安全问题 synchronized 同步监视器 需要被同步的代码 说明 操作共享数据的代码即为需要被同步的代码 共享数据 多个
  • 关于浏览器静止音频自动播放的问题

    背景 今天在制作前端页面时 想要给网页加上会自动播放的音乐 但是用audio标签设置音频的自动播放后 即使将autoplay属性设置成true 谷歌等浏览器页面加载完成后也不会自动播放音乐 尝试了各种办法无果 原因 目前 最为流行的浏览器共
  • 求助TCanvas内存无限涨的问题

    求助TCanvas内存无限涨的问题 Delphi Windows SDK API http www delphi2007 net DelphiMultimedia html delphi 20061110220830160 html pro
  • 利用Wireshark分析TCP三次握手

    首先打开 http www baidu com这个网址进行抓包 首先在过滤器中输入 http过滤 找到 GET HTTP 1 1 我们可以看到在出现了三条TCP记录之后才出现了HTTP这也更加相信HTTP是基于TCP协议的 第一次TCP握手
  • uniapp 顶部头部样式

  • 【Python】剑指offer 14:剪绳子

    题目 给你一根长度为n的绳子 请把绳子剪成m段 m和n都是整数 n gt 1并且m gt 1 每段绳子的长度记为k 0 k 1 k m 请问k 0 k 1 k m 可能的最大乘积是多少 例如 当绳子的长度为8时 我们把它剪成长度分别为2 3
  • idea中类存在编译器报错类无法找到,打包正常解决

    步骤 关键在于清掉类在idea的cache 1 刷新maven项目 2 清理idea缓存 3 maven clean install 4 重新bulid 5 如果使用了lombok插件开启之后重新build 6 maven依赖冲突导致
  • Gin微服务框架_golang web框架_完整示例Demo

    Gin简介 前些天发现了一个巨牛的人工智能学习网站 通俗易懂 风趣幽默 忍不住分享一下给大家 点击跳转到网站 Gin是一个golang的微框架 封装比较优雅 API友好 源码注释比较明确 具有快速灵活 容错方便等特点 其实对于golang而
  • Haystack 太强了!存 2600 亿图片

    作者 奇伢 来源 奇伢云存储 小文件存储 小文件存储 老生常谈的问题 先聊聊小文件存储重点关注的是什么 以前我们提过 对于磁盘来说 小 io 吃 iops 大块 io 吃吞吐 划重点 小文件的重点是 io 次数 为什么每次提到海量小文件的时
  • 定时器串口收发和空闲中断串口收发+STM32CubeMX

    引言 最近在做串口实验 总结了两种串口收发的方法 第一种是用定时器定的 第二种是使用空闲中断 第一种 使用定时器 具体做法是在串口接收数据时启动定时器 每接收一帧数据要复位定时值以保证定时器不会溢出 根据波特率计算出大概什么时候接收数据完成
  • 保姆级别uni-app使用低功耗蓝牙

    实现方式 本文使用 uni app Vue3 的方式进行开发 以手机app的方式运行 uni app 提供了低功耗蓝牙 的 api 和微信小程序提供的 api 是一样的 所以本文的讲解也适用于微信小程序 本文参考文档 https blog
  • 普中51单片机独立按键原理及源代码

    由于按键是机械弹性按键 具有弹性 在毫秒级别的时间下 按键后有短暂的抖动 转载自江科大自协化51单片机入门教程 如果按键一次用力较轻 按键里的小金属片可能会多次抖动 使得LED闪烁多次 即轻微按一次 小概率出现多次LED闪烁 消除毫秒级别下
  • 设计模式 -- 享元模式(Flyweight Pattern)

    使用共享对象可以有效的支持大量的细粒度对象 应用场景 主要目的是实现对象的共享 即共享池 当系统中对象多的时候可以减少内存的开销 通常与工厂模式一起使用 例如 缓存 对象池 Android中 Message obtain通过重用Messag
  • 如何在ubuntu系统下安装jdk

    由于换了系统 要从新配置下环境 下面说明下如何在ubuntu系统下安装jdk 首先安装eclipse 我是在ubuntu软件中心安装的 3 8版本 比较老 但图省事也就先这样了 然后要从网上下载jdk1 7 3 8版本最多支持到jkd1 7
  • Android 获取屏幕宽高的正确姿势

    前言 在开发时 我们经常需要根据屏幕的宽高来进行对view的适配 无论是自定义view还是andorid自带的一些控件 比如说需要占当前屏幕高度的30 就需要获取到屏幕的宽高 但在获取宽高时我遇到了一些坑 总结如下 获取高度 下面两种方法都
  • C语言:文件读取

    C语言 文件读取 在C语言中 我们可以使用标准库中的文件操作函数来读取和写入文件 本文将介绍如何使用C语言读取文件 首先 我们需要打开一个文件 可以使用fopen 函数来打开文件 该函数需要两个参数 第一个参数为文件名 第二个参数为打开方式
  • 栈的初始化、销毁、出入栈、取栈顶元素

    一 初始化 void SeqStackInit SeqStack stack if stack NULL return stack gt size 0 stack gt capacity 1000 yuan shi da xiaostack
  • csdn 首发最轻松安装教程:关于centos7 centos8 centos9如何安装erlang和对应版本的rabbitmq

    1 前言 最近做毕业设计 自己装了个虚拟机 但通过各种rpm下载包的方式安装erlang和rabbitmq 总是无法启动或启动失败 琢磨了一番 是erlang相关的包依赖没有自动安装 起码得几十个 由于过于麻烦 下面请看图 所以我写了一个r
  • idea远程调试

    目录 1 背景 2 代码 3 idea配置 4 服务端远程开启debug服务 5 远程调试 5 1 服务端 5 2 本地启动 6 注意 1 背景 线上出了问题 我们一般是通过日志来定位问题 在没有日志的情况下 往往定位问题是比较困难的 这时