Received: from PCH.mit.edu (18.7.21.50) by mail.efplus.com (192.168.0.8) with Microsoft SMTP Server (TLS) id 8.3.485.1; Tue, 7 Jul 2020 04:20:21 -0700 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 067BBo6N024647; Tue, 7 Jul 2020 07:12:03 -0400 Received: from outgoing-exchange-7.mit.edu (OUTGOING-EXCHANGE-7.MIT.EDU [18.9.28.58]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 067BBnHx024644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 7 Jul 2020 07:11:49 -0400 Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-7.mit.edu (8.14.7/8.12.4) with ESMTP id 067BAJsa002451 for ; Tue, 7 Jul 2020 07:10:23 -0400 Received: from w92expo7.exchange.mit.edu (18.7.74.61) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 7 Jul 2020 07:10:58 -0400 Received: from oc11exhyb5.exchange.mit.edu (18.9.1.110) by w92expo7.exchange.mit.edu (18.7.74.61) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Tue, 7 Jul 2020 07:11:47 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) by oc11exhyb5.exchange.mit.edu (18.9.1.110) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Tue, 7 Jul 2020 07:11:47 -0400 Received: from DM5PR19CA0070.namprd19.prod.outlook.com (2603:10b6:3:116::32) by DM5PR01MB2716.prod.exchangelabs.com (2603:10b6:3:f8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.27; Tue, 7 Jul 2020 11:11:46 +0000 Received: from DM3NAM03FT029.eop-NAM03.prod.protection.outlook.com (2603:10b6:3:116:cafe::54) by DM5PR19CA0070.outlook.office365.com (2603:10b6:3:116::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.23 via Frontend Transport; Tue, 7 Jul 2020 11:11:46 +0000 Received: from p3plwbeout27-01.prod.phx3.secureserver.net (216.69.139.46) by DM3NAM03FT029.mail.protection.outlook.com (10.152.82.194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.24 via Frontend Transport; Tue, 7 Jul 2020 11:11:45 +0000 Received: from p3plgemwbe27-04.prod.phx3.secureserver.net ([10.36.136.34]) by :WBEOUT: with SMTP id slVKjzthh8Be1slVKj4Fl2; Tue, 07 Jul 2020 04:11:14 -0700 Received: (qmail 67227 invoked by uid 99); 7 Jul 2020 11:11:14 -0000 From: Jim To: Microcontroller discussion list - Public. Sender: "piclist-bounces@mit.edu" Date: Tue, 7 Jul 2020 04:11:13 -0700 Subject: RE: [PIC] MPLABX | XC8 - watching variables in multiple modules Thread-Topic: [PIC] MPLABX | XC8 - watching variables in multiple modules Thread-Index: AdZUUJpa/fBWxVPCQOWT5EPIG3tpQg== Message-ID: <20200707041113.06a56fd6300ec2bfca6379d4e10ab8d2.060b50c987.wbe@email27.godaddy.com> List-Help: List-Subscribe: , List-Unsubscribe: , Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Exchange-Organization-AuthSource: TS500.efplus4.local X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-Exchange-Organization-SenderIdResult: Pass X-MS-Exchange-Organization-PRD: mit.edu X-MS-TNEF-Correlator: received-spf: None (protection.outlook.com: jpes.com does not designate permitted sender hosts) dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mitprod.onmicrosoft.com; s=selector2-mitprod-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NwTH3qrGExqliNQOW0erOABLxwTTOPKgbHjWv1vGXus=; b=eThK4aO/lDZNnQaBd883D2f5X4R0k/XTfJXyKzBbtVFpfX8UcJQx6Wl9LlT4pN1UHYdJKQL8zfFUc2GwUBmXlCGbz5h5q+xKgz41Vyry/eALhwhkWcxjn1D+DnuurtRhESbxehNpBPuOYReoFihuprzkdGv/y4KTHxzrCIs2Aks= authentication-results: spf=none (sender IP is 216.69.139.46) smtp.mailfrom=jpes.com; mit.edu; dkim=none (message not signed) header.d=none;mit.edu; dmarc=none action=none header.from=jpes.com; x-originating-ip: 76.31.74.251 user-agent: Workspace Webmail 6.11.8 x-cmae-analysis: v=2.3 cv=Gq88BX9C c=1 sm=1 tr=0 a=NKKkjjbUfNZSZSE+0/qoNg==:117 a=Q8JqakWpEWwA:10 a=1ApPbfYrYNAA:10 a=IkcTkHD0fZMA:10 a=_RQrkK6FrEwA:10 a=pGLkceISAAAA:8 a=F07sB3KiAAAA:8 a=Gz7s5_CCAAAA:8 a=Al2A-fJvMYRvpXHA7kIA:9 a=QEXdDO2ut3YA:10 a=8rYrM0obaTRgCqsvCuYq:22 errors-to: piclist-bounces@mit.edu list-id: "Microcontroller discussion list - Public." list-post: x-beenthere: piclist@mit.edu x-mailman-version: 2.1.6 x-sid: slVKjzthh8Be1 x-topics: [PIC] x-mime-autoconverted: from quoted-printable to 8bit by PCH.mit.edu id 067BBnHx024644 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Rename the variables with a 1 or 2 so they are seperate and distinct.=20 And you'll know which module each is working with at a glance. Regards, Jim > -------- Original Message -------- > Subject: [PIC] MPLABX | XC8 - watching variables in multiple modules > From: K S > Date: Tue, July 07, 2020 2:18 am > To: "Microcontroller discussion list - Public." >=20 >=20 > Hello list. >=20 > I am debugging an XC8 program with lots of modules in MPLABX 5.35. >=20 > Various modules have variables that have the same name. For example I > have a SCI1 and SCI2 module, both containing a variable called rx_buf. > These variables are global within the module but not within the whole > project (declared as "static type name"). The program compiles and > functions properly. >=20 > However during debug I cannot watch these variables properly. Only one > variable is properly shown within any watch window, the other will > show as "undefined" or as a copy of the other one. When debugging > within a module I would expect the variable in scope to show up in a > watch or when hovered over, but this is not the case. >=20 > Has anyone encountered this? And found any workaround? >=20 > TIA. Cheers all. > --=20 > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .