From owner-freebsd-questions@freebsd.org Tue Jan 29 08:16:57 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 928C514B083C for ; Tue, 29 Jan 2019 08:16:57 +0000 (UTC) (envelope-from jude.obscure@yandex.com) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::607]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9919B71E80 for ; Tue, 29 Jan 2019 08:16:56 +0000 (UTC) (envelope-from jude.obscure@yandex.com) Received: from mxback10g.mail.yandex.net (mxback10g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:171]) by forward104o.mail.yandex.net (Yandex) with ESMTP id 9B0799423EF for ; Tue, 29 Jan 2019 11:16:44 +0300 (MSK) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [2a02:6b8:0:1a2d::25]) by mxback10g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mWCD7Nswm2-GiMKgYd8; Tue, 29 Jan 2019 11:16:44 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1548749804; bh=chxUIHx2sJH3RIafhVIeKS0B0o/pp/d2yqiYcWQTwfg=; h=Message-ID:Subject:From:To:Date; b=BMF2FpMXQFZzzieGqNuO1ICOhYMr/IDPsOHDIl+oBJU+UbqnfWdwrfcXQQVfcAU4D NJDiXYUcsj8dvVj6WJubNAIYCRJCu1QtcsrBXzr+SK28P5FPLvJ6IZnCaJm1ttkSvJ xnyZIo0D7rHxvbIQSnnBXyKVIGThQYNlF+O9tSHs= Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2TWX79KpYo-Ghj4Aefb; Tue, 29 Jan 2019 11:16:43 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Message-ID: Subject: Debugging with lldb under FreeBSD::Visual Studio Code From: Manish Jain To: FreeBSD Questions Date: Tue, 29 Jan 2019 13:45:30 +0530 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 9919B71E80 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yandex.com header.s=mail header.b=BMF2FpMX; dmarc=pass (policy=none) header.from=yandex.com; spf=pass (mx1.freebsd.org: domain of jude.obscure@yandex.com designates 2a02:6b8:0:1a2d::607 as permitted sender) smtp.mailfrom=jude.obscure@yandex.com X-Spamd-Result: default: False [-5.33 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0:1a2d::/64]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yandex.com]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yandex.com:+]; DMARC_POLICY_ALLOW(-0.50)[yandex.com,none]; MX_GOOD(-0.01)[cached: mx.yandex.ru]; NEURAL_HAM_SHORT(-0.98)[-0.985,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yandex.com]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[7.0.6.0.0.0.0.0.0.0.0.0.0.0.0.0.d.2.a.1.0.0.0.0.8.b.6.0.2.0.a.2.list.dnswl.org : 127.0.5.1]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[yandex.com:s=mail]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-1.73)[ipnet: 2a02:6b8::/32(-4.82), asn: 13238(-3.85), country: RU(0.00)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2019 08:16:57 -0000 Hi, I am trying to set up Visual Studio Code for debugging my C/C++ projects. This is not easy : - ) But I managed to get the environment working under Linux using lldb. When I try that setup in FreeBSD, trying to launch the debugger first got me a message that my version of lldb (lldb60) does not support scripting. So I installed llvm70 and put the following in make.conf: CC=clang70 CXX=clang++70 CPP=clang-cpp70 Now when I try to get the debugger running, I get a message that the selected debug adapter requires platform-specific files, and then an error message that the platform is not supported. Has anyone managed to get lldb debugging functional for VS Code under freeBSD ? Any tips would be greatly welcome. Thanks, Manish Jain